Radio init / masstorage start / massstorage end / shutdown sequences … (#3674)
* Radio init / masstorage start / massstorage end / shutdown sequences reordering: - More traces - Fixes #3642 - Reuses idea of #3662 Still not finished and completely untested * More traces * Compilation fix * Reuses the idea of #3652 * Alarms were checked 2 times on massstorage end
This commit is contained in:
@@ -151,9 +151,9 @@ uint32_t unlocked = 0;
|
||||
|
||||
extern uint32_t EepromBlocked;
|
||||
|
||||
extern void init_spi(void);
|
||||
extern void writeBlock(void);
|
||||
extern void usbPluggedIn();
|
||||
void init_spi(void);
|
||||
void writeBlock(void);
|
||||
void usbPluggedIn();
|
||||
|
||||
#if defined(PCBX9E)
|
||||
typedef int32_t rotenc_t;
|
||||
|
||||
@@ -992,6 +992,8 @@ void sdInit(void)
|
||||
// TODO shouldn't be there!
|
||||
void sdInit(void)
|
||||
{
|
||||
TRACE("sdInit");
|
||||
|
||||
ioMutex = CoCreateMutex();
|
||||
if (ioMutex >= CFG_MAX_MUTEX ) {
|
||||
//sd error
|
||||
|
||||
Reference in New Issue
Block a user