Skip to content

Commit

Permalink
#679 Print one-indexed lighthouse channels in console log
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed Feb 18, 2021
1 parent d4320f1 commit 6e40510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/src/lighthouse/lighthouse_core.c
Expand Up @@ -363,7 +363,7 @@ static void useCalibrationData(pulseProcessor_t *appState) {
const bool currentCalibDataValid = currentCalibData->valid;
const bool isDataDifferent = ((newData.uid != currentCalibData->uid) || (newData.valid != currentCalibDataValid));
if (isDataDifferent) {
DEBUG_PRINT("Got calibration from %08X on channel %d\n", (unsigned int)appState->ootxDecoder[baseStation].frame.id, baseStation);
DEBUG_PRINT("Got calibration from %08X on channel %d\n", (unsigned int)appState->ootxDecoder[baseStation].frame.id, baseStation + 1);
lighthouseCoreSetCalibrationData(baseStation, &newData);
lighthouseStoragePersistCalibDataBackground(baseStation);

Expand Down
2 changes: 1 addition & 1 deletion src/modules/src/lighthouse/lighthouse_storage.c
Expand Up @@ -83,7 +83,7 @@ static void lhPersistDataWorker(void* arg) {
const bool storeGeo = false;
const bool storeCalibration = true;
if (! lighthouseStoragePersistData(baseStation, storeGeo, storeCalibration)) {
DEBUG_PRINT("WARNING: Failed to persist calibration data for base station %i\n", baseStation);
DEBUG_PRINT("WARNING: Failed to persist calibration data for base station %i\n", baseStation + 1);
}
}

Expand Down

0 comments on commit 6e40510

Please sign in to comment.