Browse Source

check for core.gpsport nullpointer first

master
dongie 11 years ago
parent
commit
fc1f5c9f1e
  1. 5342
      obj/baseflight.hex
  2. 2
      src/gps.c

5342
obj/baseflight.hex
File diff suppressed because it is too large
View File

2
src/gps.c

@ -160,8 +160,10 @@ void gpsInitHardware(void)
void gpsThread(void)
{
// read out available GPS bytes
if (core.gpsport) {
while (serialTotalBytesWaiting(core.gpsport))
gpsNewData(serialRead(core.gpsport));
}
switch (gpsData.state) {
case GPS_UNKNOWN:

Loading…
Cancel
Save