mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +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)
|
void gpsThread(void)
|
||||||
{
|
{
|
||||||
// read out available GPS bytes
|
// read out available GPS bytes
|
||||||
while (uartTotalBytesWaiting(core.gpsport))
|
while (serialTotalBytesWaiting(core.gpsport))
|
||||||
gpsNewData(uartRead(core.gpsport));
|
gpsNewData(serialRead(core.gpsport));
|
||||||
|
|
||||||
switch (gpsData.state) {
|
switch (gpsData.state) {
|
||||||
case GPS_UNKNOWN:
|
case GPS_UNKNOWN:
|
||||||
|
@ -541,9 +541,6 @@ int8_t gpsSetPassthrough(void)
|
||||||
if (gpsData.state != GPS_RECEIVINGDATA)
|
if (gpsData.state != GPS_RECEIVINGDATA)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
// get rid of callback
|
|
||||||
core.gpsport->callback = NULL;
|
|
||||||
|
|
||||||
LED0_OFF;
|
LED0_OFF;
|
||||||
LED1_OFF;
|
LED1_OFF;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue