mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Try using proper serial routines this time
This commit is contained in:
parent
1898fd43fd
commit
d002f0fdc1
2 changed files with 2808 additions and 2811 deletions
5612
obj/baseflight.hex
5612
obj/baseflight.hex
File diff suppressed because it is too large
Load diff
|
@ -160,8 +160,8 @@ void gpsInitHardware(void)
|
|||
void gpsThread(void)
|
||||
{
|
||||
// read out available GPS bytes
|
||||
while (uartTotalBytesWaiting(core.gpsport))
|
||||
gpsNewData(uartRead(core.gpsport));
|
||||
while (serialTotalBytesWaiting(core.gpsport))
|
||||
gpsNewData(serialRead(core.gpsport));
|
||||
|
||||
switch (gpsData.state) {
|
||||
case GPS_UNKNOWN:
|
||||
|
@ -541,9 +541,6 @@ int8_t gpsSetPassthrough(void)
|
|||
if (gpsData.state != GPS_RECEIVINGDATA)
|
||||
return -1;
|
||||
|
||||
// get rid of callback
|
||||
core.gpsport->callback = NULL;
|
||||
|
||||
LED0_OFF;
|
||||
LED1_OFF;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue