style: apply consistent code formatting and spacing
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
#include <ArduinoJson.h>
|
||||
#include "Config.h"
|
||||
#include "ScreenState.h"
|
||||
#include "DisplayManager.h"
|
||||
#include "NetManager.h"
|
||||
#include "ScreenState.h"
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <ArduinoJson.h>
|
||||
|
||||
class DoorbellLogic {
|
||||
public:
|
||||
explicit DoorbellLogic(DisplayManager* display);
|
||||
|
||||
/// Call from setup(). Pass board-specific WiFi creds.
|
||||
void begin(const char* version, const char* boardName,
|
||||
const WiFiCred* creds, int credCount);
|
||||
void begin(const char* version, const char* boardName, const WiFiCred* creds, int credCount);
|
||||
/// Call from loop() — polls topics, runs timers, transitions state.
|
||||
void update();
|
||||
/// Transition out of BOOTED → SILENT. Call at end of setup().
|
||||
@@ -38,16 +38,16 @@ private:
|
||||
String topicUrl(const char* base);
|
||||
|
||||
DisplayManager* _display;
|
||||
NetManager _net;
|
||||
ScreenState _state;
|
||||
NetManager _net;
|
||||
ScreenState _state;
|
||||
|
||||
const char* _version = "";
|
||||
const char* _board = "";
|
||||
bool _debug = false;
|
||||
const char* _version = "";
|
||||
const char* _board = "";
|
||||
bool _debug = false;
|
||||
|
||||
uint32_t _lastPollMs = 0;
|
||||
uint32_t _lastPollMs = 0;
|
||||
uint32_t _lastHeartbeatMs = 0;
|
||||
uint32_t _bootGraceEnd = 0;
|
||||
uint32_t _bootGraceEnd = 0;
|
||||
|
||||
String _alertUrl;
|
||||
String _silenceUrl;
|
||||
|
||||
Reference in New Issue
Block a user