mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
Style suggestions to cleanup GPS from Stac
This commit is contained in:
parent
f0b22519be
commit
b110e9c549
@ -78,7 +78,7 @@ static float GravityAccel(float latitude, float longitude, float altitude);
|
||||
// Private variables
|
||||
|
||||
static uint32_t gpsPort;
|
||||
static uint8_t gpsEnabled = 0;
|
||||
static bool gpsEnabled = false;
|
||||
|
||||
static xTaskHandle gpsTaskHandle;
|
||||
|
||||
@ -124,9 +124,9 @@ int32_t GPSInitialize(void)
|
||||
uint8_t optionalModules[HWSETTINGS_OPTIONALMODULES_NUMELEM];
|
||||
HwSettingsOptionalModulesGet(optionalModules);
|
||||
if (optionalModules[HWSETTINGS_OPTIONALMODULES_GPS] == HWSETTINGS_OPTIONALMODULES_ENABLED) {
|
||||
gpsEnabled=1;
|
||||
gpsEnabled = true;
|
||||
} else {
|
||||
gpsEnabled=0;
|
||||
gpsEnabled = false;
|
||||
}
|
||||
|
||||
if (gpsPort && gpsEnabled) {
|
||||
|
@ -46,7 +46,6 @@
|
||||
#include "systemsettings.h"
|
||||
#include "i2cstats.h"
|
||||
#include "taskinfo.h"
|
||||
#include "hwsettings.h"
|
||||
#include "watchdogstatus.h"
|
||||
#include "taskmonitor.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user