us_ticker is not yet initialised at this stage

pull/7060/head
Wilfried Chauveau 2018-05-30 14:20:32 +01:00
parent 24cebbaec3
commit 1c7b91aa8c
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ void ublox_mdm_init(void)
// Can't use wait_ms() as RTOS isn't initialised yet
//wait_ms(50); // when USB cable is inserted the interface chip issues
// Here's the code from the non-RTOS version
us_ticker_init();
uint32_t start = us_ticker_read();
while ((us_ticker_read() - start) < 50000);
}