[all with SD support] Update to latest FatFS version
[Taranis] Bug fixed with EEPROM saving when USB is plugged. It will now reboot when USB is unplugged
This commit is contained in:
+6
-5
@@ -3640,11 +3640,12 @@ void perMain()
|
||||
#endif
|
||||
|
||||
#if defined(PCBTARANIS)
|
||||
if (usbState == USB_DISCONNECTING) {
|
||||
eeReadAll();
|
||||
sdInit();
|
||||
eeLoadModel(g_eeGeneral.currModel);
|
||||
usbState = USB_DISCONNECTED;
|
||||
static bool usbStarted = false;
|
||||
if (!usbStarted && usbPlugged()) {
|
||||
usbStarted = true;
|
||||
sdDone();
|
||||
eeCheck(true);
|
||||
usbStart();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user