Cosmetic code style refactoring: add enum for screen orientation & define for OLED state (#1732)
* saveSettings: add comment for #endif, update var name to reflect its purpose regardless its one-time & temporal * Settings.h: add enum for orientation mode * settingsGUI.cpp: add markings for #endifs, add/remove extra new lines to propose better code read-ability in my humble vision from the side, didnt touch any functionality only cosmetic syntax * settingsGUI.cpp: remove added-by-accident new line in the end of the file * OLED.hpp: unify ifdef section, add markings for #endifs, add readable macros for ON/OFF OLED state instead of magic numbers * OLED.cpp: add markings for #endifs, add readable macros for ON/OFF OLED state instead of magic numbers, trying unify common style for the whole file for better read-ability * Settings.cpp: unify code style * settingsGUI.cpp: revert true/false for setDisplayRotation * OLED.cpp: unify comments style
This commit is contained in:
@@ -86,6 +86,12 @@ typedef enum {
|
||||
ZERO = 3, // Power on only (No heat Mode)
|
||||
} autoStartMode_t;
|
||||
|
||||
typedef enum {
|
||||
RIGHT = 0, // Right-hand screen orientation
|
||||
LEFT = 1, // Left-hand screen orientation
|
||||
AUTO = 2, // Automatic screen orientation based on accel.data if presented
|
||||
} orientationMode_t;
|
||||
|
||||
// Settings wide operations
|
||||
void saveSettings();
|
||||
bool loadSettings();
|
||||
|
||||
Reference in New Issue
Block a user