[Taranis] USB deconnection fix

[Taranis / sky9x] Less maths for audio (no more sin)
This commit is contained in:
bsongis@gmail.com
2013-06-25 19:31:20 +00:00
parent 2d3215466f
commit 381af741fb
11 changed files with 131 additions and 92 deletions
+1
View File
@@ -93,6 +93,7 @@ void delay_01us(uint16_t nb);
// SD driver
#if defined(SIMU)
#define sdInit()
#define sdDone()
#else
#define SD_IS_HC() (1)
#define SD_GET_SIZE_MB() (0)
-1
View File
@@ -980,7 +980,6 @@ void sdDone()
{
if (sdMounted()) {
audioQueue.stopSD();
closeLogs();
#if defined(DEBUG)
f_close(&g_telemetryFile);
#endif
-6
View File
@@ -119,12 +119,6 @@ void USBD_USR_DeviceConnected (void)
*/
void USBD_USR_DeviceDisconnected (void)
{
// TODO: Separate the shutdown operations in main() into a shutdown() function in opentx.cpp,
// and call that before the NVIC_SystemReset()?
g_eeGeneral.unexpectedShutdown = 0;
eeDirty(EE_GENERAL);
eeCheck(true);
NVIC_SystemReset();
}