From: Michael McMaster Date: Sun, 10 Jan 2021 00:06:02 +0000 (+1000) Subject: Fix up crashing firmware X-Git-Url: http://git.codesrc.com/gitweb.cgi?a=commitdiff_plain;h=ac604b2b0c98a054c98e2967ff40c623120ed7c2;p=SCSI2SD.git Fix up crashing firmware --- 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()