mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Naming changes suggested by Hydra
This commit is contained in:
parent
2e8d026b4e
commit
cc67b2e87c
3 changed files with 46 additions and 47 deletions
|
@ -766,7 +766,7 @@ void gpsUpdate(timeUs_t currentTimeUs)
|
|||
{
|
||||
static gpsState_e gpsStateDurationUs[GPS_STATE_COUNT];
|
||||
timeUs_t executeTimeUs;
|
||||
gpsState_e gpsCurState = gpsData.state;
|
||||
gpsState_e gpsCurrentState = gpsData.state;
|
||||
|
||||
// read out available GPS bytes
|
||||
if (gpsPort) {
|
||||
|
@ -861,8 +861,8 @@ void gpsUpdate(timeUs_t currentTimeUs)
|
|||
|
||||
executeTimeUs = micros() - currentTimeUs;
|
||||
|
||||
if (executeTimeUs > gpsStateDurationUs[gpsCurState]) {
|
||||
gpsStateDurationUs[gpsCurState] = executeTimeUs;
|
||||
if (executeTimeUs > gpsStateDurationUs[gpsCurrentState]) {
|
||||
gpsStateDurationUs[gpsCurrentState] = executeTimeUs;
|
||||
}
|
||||
schedulerSetNextStateTime(gpsStateDurationUs[gpsData.state]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue