chore: Apply code formatting on entire codebase for consistent style

This commit is contained in:
icex2
2023-04-06 15:39:53 +02:00
committed by icex2
parent a1a849aef3
commit 031836ef0e
186 changed files with 2446 additions and 1979 deletions
+5 -9
View File
@@ -14,11 +14,7 @@ typedef struct {
uint8_t r, g, b;
} rgb_t;
enum jbio_light_mode {
LIGHTS_OFF,
LIGHTS_ON,
LIGHTS_INPUT
};
enum jbio_light_mode { LIGHTS_OFF, LIGHTS_ON, LIGHTS_INPUT };
#define IS_BIT_SET(var, bit) ((((var) >> (bit)) & 1) > 0)
@@ -65,12 +61,12 @@ int main(int argc, char **argv)
return -2;
}
if(panel_corners_animate && (cnt % 50) == 0) {
if (panel_corners_animate && (cnt % 50) == 0) {
panel_mode++;
panel_mode %= 5;
// skip the all state
if(panel_mode == JB_IO_PANEL_MODE_ALL) {
if (panel_mode == JB_IO_PANEL_MODE_ALL) {
panel_mode++;
}
@@ -79,7 +75,7 @@ int main(int argc, char **argv)
all_text = " ";
top_left = top_right = bottom_left = bottom_right = ' ';
switch(panel_mode) {
switch (panel_mode) {
case JB_IO_PANEL_MODE_ALL:
all_text = "ALL";
top_left = top_right = bottom_left = bottom_right = '*';
@@ -269,7 +265,7 @@ int main(int argc, char **argv)
case '5': {
panel_corners_animate = !panel_corners_animate;
if(!panel_corners_animate) {
if (!panel_corners_animate) {
panel_mode = JB_IO_PANEL_MODE_ALL;
jb_io_set_panel_mode(panel_mode);
}