1
0
Fork 0
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:
dongie 2014-04-09 07:23:43 +09:00
parent 1898fd43fd
commit d002f0fdc1
2 changed files with 2808 additions and 2811 deletions

File diff suppressed because it is too large Load diff

View file

@ -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;