[Horus] No need for a reboot after Massstorage end, no? Unless we have written over the EEPROM, but on Horus it's not needed

This commit is contained in:
Bertrand Songis
2016-07-28 07:42:05 +02:00
parent c307e1987c
commit 7e3cfc9b66
2 changed files with 24 additions and 23 deletions
+3 -2
View File
@@ -19,7 +19,7 @@
*/ */
/* Includes ------------------------------------------------------------------*/ /* Includes ------------------------------------------------------------------*/
#include "../../opentx.h" #include "opentx.h"
extern "C" { extern "C" {
#include "usbd_usr.h" #include "usbd_usr.h"
@@ -112,7 +112,8 @@ void USBD_USR_DeviceConnected (void)
*/ */
void USBD_USR_DeviceDisconnected (void) void USBD_USR_DeviceDisconnected (void)
{ {
#if !defined(BOOT) && defined(USB_MASS_STORAGE) #if !defined(BOOT) && defined(USB_MASS_STORAGE) && !defined(PCBHORUS)
// TODO is it really needed if we didn't write the EEPROM?
NVIC_SystemReset(); NVIC_SystemReset();
#endif #endif
} }
+1 -1
View File
@@ -27,7 +27,7 @@ extern "C" {
} }
#endif #endif
#define MENUS_STACK_SIZE 4000 #define MENUS_STACK_SIZE 2000
#define MIXER_STACK_SIZE 500 #define MIXER_STACK_SIZE 500
#define AUDIO_STACK_SIZE 500 #define AUDIO_STACK_SIZE 500
#define BLUETOOTH_STACK_SIZE 500 #define BLUETOOTH_STACK_SIZE 500