Merge pull request #7060 from ithinuel/fix-c027

UBLOX_C027: init us_ticker in the target initialization
pull/6969/merge
Cruz Monrreal 2018-06-04 10:43:08 -05:00 committed by GitHub
commit abed3dfb1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}