gps: add missing case & arguments for femtomes driver

This commit is contained in:
Beat Küng 2021-08-17 07:27:09 +02:00 committed by Daniel Agar
parent 49f81a9e0e
commit 22e2fc9465

View File

@ -319,6 +319,8 @@ GPS::GPS(const char *path, gps_driver_mode_t mode, GPSHelper::Interface interfac
case 3: _mode = gps_driver_mode_t::ASHTECH; break;
case 4: _mode = gps_driver_mode_t::EMLIDREACH; break;
case 5: _mode = gps_driver_mode_t::FEMTOMES; break;
#endif // CONSTRAINED_FLASH
}
}
@ -788,7 +790,7 @@ GPS::run()
break;
case gps_driver_mode_t::FEMTOMES:
_helper = new GPSDriverFemto(&GPS::callback, this, &_report_gps_pos/*, _p_report_sat_info*/);
_helper = new GPSDriverFemto(&GPS::callback, this, &_report_gps_pos, _p_report_sat_info, heading_offset);
set_device_type(DRV_GPS_DEVTYPE_FEMTOMES);
break;
#endif // CONSTRAINED_FLASH