Skip to content

Commit

Permalink
Add option to disable periodic telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKlimaj committed Jan 23, 2025
1 parent 797fc07 commit e271dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Inc/targets.h
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,7 @@
#define CURRENT_ADC_CHANNEL LL_ADC_CHANNEL_3
#define CURRENT_ADC_PIN LL_GPIO_PIN_3
#define USE_SERIAL_TELEMETRY
#define NO_PERIODIC_TELEMETRY
#define USE_DRV8328_NSLEEP
#define NSLEEP_PORT GPIOA
#define NSLEEP_PIN LL_GPIO_PIN_15
Expand Down
2 changes: 2 additions & 0 deletions Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1264,13 +1264,15 @@ void tenKhzRoutine()
}
}

#ifndef NO_PERIODIC_TELEMETRY
if (eepromBuffer.telementry_on_interval) {
telem_ms_count++;
if (telem_ms_count > telemetry_interval_ms * 20) {
send_telemetry = 1;
telem_ms_count = 0;
}
}
#endif

#ifndef BRUSHED_MODE

Expand Down

0 comments on commit e271dde

Please sign in to comment.