From 0545586aacc06add477b6df38cd50900698f6d9a Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 3 Apr 2023 16:07:28 +0200 Subject: worky but janky integration done --- src/ppu/stm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ppu/stm.c') diff --git a/src/ppu/stm.c b/src/ppu/stm.c index 8334090..72e46ae 100644 --- a/src/ppu/stm.c +++ b/src/ppu/stm.c @@ -15,7 +15,7 @@ void hh_ppu_vram_dwrite(uint8_t* data, size_t size) { HAL_SPI_Transmit(&hspi1, test, 4, HAL_MAX_DELAY); // HAL_Delay(100); } - HAL_SPI_Transmit(&hspi1, (uint8_t[4]){ 0xff }, size, HAL_MAX_DELAY); + HAL_SPI_Transmit(&hspi1, (uint8_t[4]){ 0xff }, 4, HAL_MAX_DELAY); // reset SPI HAL_GPIO_WritePin(GPIOA, GPIO_PIN_9, GPIO_PIN_SET); HAL_GPIO_WritePin(GPIOA, GPIO_PIN_9, GPIO_PIN_RESET); -- cgit v1.2.3