From ac604b2b0c98a054c98e2967ff40c623120ed7c2 Mon Sep 17 00:00:00 2001 From: Michael McMaster Date: Sun, 10 Jan 2021 10:06:02 +1000 Subject: [PATCH] Fix up crashing firmware --- software/SCSI2SD/src/storedevice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/software/SCSI2SD/src/storedevice.c b/software/SCSI2SD/src/storedevice.c index 3b93d36..d00eb4e 100644 --- a/software/SCSI2SD/src/storedevice.c +++ b/software/SCSI2SD/src/storedevice.c @@ -60,10 +60,10 @@ S2S_Device** s2s_GetDevices(int* count) #ifdef NOR_SPI_DATA_WIDTH *count = 2; - allDevices[0] = spiFlashDevice; + allDevices[1] = spiFlashDevice; #endif - return &allDevices; + return allDevices; } void s2s_deviceEarlyInit() -- 2.38.5