Pre-commit

This commit is contained in:
Cabooman 2024-02-03 22:31:18 +01:00
parent 13bfdcc33b
commit 5fef88504c
4 changed files with 11 additions and 12 deletions

View file

@ -947,11 +947,10 @@ void init_battery(void) {
#ifdef MQTT #ifdef MQTT
void publish_battery_specifics(void) { void publish_battery_specifics(void) {
static bool first_execution = true; static bool first_execution = true;
if(first_execution == true) { if (first_execution == true) {
first_execution = false; first_execution = false;
// Discovery stuff // Discovery stuff
} } else {
else {
// Publishing stuff // Publishing stuff
} }
} }