]> localhost Git - SCSI2SD.git/commitdiff
Fix up crashing firmware
authorMichael McMaster <michael@codesrc.com>
Sun, 10 Jan 2021 00:06:02 +0000 (10:06 +1000)
committerMichael McMaster <michael@codesrc.com>
Sun, 10 Jan 2021 00:06:02 +0000 (10:06 +1000)
software/SCSI2SD/src/storedevice.c

index 3b93d36ab75e36e09acfb7f5dc0b2babac45deae..d00eb4e2a390b4e1f7aa2616f9962f6391f1a5ca 100644 (file)
@@ -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()