style: apply consistent code formatting and spacing
This commit is contained in:
@@ -1,19 +1,9 @@
|
||||
#pragma once
|
||||
#include <Arduino.h>
|
||||
|
||||
enum class DeviceState {
|
||||
BOOTED,
|
||||
SILENT,
|
||||
ALERTING,
|
||||
SILENCED
|
||||
};
|
||||
enum class DeviceState { BOOTED, SILENT, ALERTING, SILENCED };
|
||||
|
||||
enum class ScreenID {
|
||||
BOOT,
|
||||
OFF,
|
||||
ALERT,
|
||||
DASHBOARD
|
||||
};
|
||||
enum class ScreenID { BOOT, OFF, ALERT, DASHBOARD };
|
||||
|
||||
struct ScreenState {
|
||||
DeviceState deviceState = DeviceState::BOOTED;
|
||||
@@ -35,9 +25,8 @@ struct ScreenState {
|
||||
bool showDashboard = false;
|
||||
};
|
||||
|
||||
inline const char* deviceStateStr(DeviceState s)
|
||||
{
|
||||
switch (s) {
|
||||
inline const char* deviceStateStr(DeviceState s) {
|
||||
switch(s) {
|
||||
case DeviceState::BOOTED:
|
||||
return "BOOTED";
|
||||
case DeviceState::SILENT:
|
||||
@@ -50,9 +39,8 @@ inline const char* deviceStateStr(DeviceState s)
|
||||
return "?";
|
||||
}
|
||||
|
||||
inline const char* screenIdStr(ScreenID s)
|
||||
{
|
||||
switch (s) {
|
||||
inline const char* screenIdStr(ScreenID s) {
|
||||
switch(s) {
|
||||
case ScreenID::BOOT:
|
||||
return "BOOT";
|
||||
case ScreenID::OFF:
|
||||
|
||||
Reference in New Issue
Block a user