[Taranis] Asterisk BMP (thanks Martin!)
[Taranis] WDT timeout adjustable when dealing with long delays without pulses (thanks Mike for the trick!) [Taranis] After USB is disconnected, the SD and the EEPROM are read inside the main, not inside the interrupt [Taranis] Removed dead code about CPU temperature [stock] Flash saving (thanks Mike for your emails!)
This commit is contained in:
@@ -114,7 +114,7 @@ void USBD_USR_DeviceConnected (void)
|
||||
}
|
||||
|
||||
eeCheck(true);
|
||||
usb_connected = 1;
|
||||
usbState = USB_CONNECTED;
|
||||
}
|
||||
|
||||
|
||||
@@ -126,12 +126,7 @@ void USBD_USR_DeviceConnected (void)
|
||||
*/
|
||||
void USBD_USR_DeviceDisconnected (void)
|
||||
{
|
||||
usb_connected = 0;
|
||||
|
||||
eeReadAll();
|
||||
eeLoadModel(g_eeGeneral.currModel);
|
||||
|
||||
sdInit();
|
||||
usbState = USB_DISCONNECTING;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user