mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Pre-commit
This commit is contained in:
parent
13bfdcc33b
commit
5fef88504c
4 changed files with 11 additions and 12 deletions
|
@ -947,11 +947,10 @@ void init_battery(void) {
|
|||
#ifdef MQTT
|
||||
void publish_battery_specifics(void) {
|
||||
static bool first_execution = true;
|
||||
if(first_execution == true) {
|
||||
if (first_execution == true) {
|
||||
first_execution = false;
|
||||
// Discovery stuff
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// Publishing stuff
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue