diff --git a/src/Power.cpp b/src/Power.cpp index 819ed500..b1a5eae3 100644 --- a/src/Power.cpp +++ b/src/Power.cpp @@ -7,9 +7,9 @@ void Power_Init(void) { #ifdef POWER -#if (POWER >= 0 && POWER <= MAX_GPIO) + #if (POWER >= 0 && POWER <= MAX_GPIO) pinMode(POWER, OUTPUT); // Only necessary for GPIO. For port-expander it's done (previously) via Port_init() -#endif + #endif #endif } @@ -17,9 +17,9 @@ void Power_Init(void) { void Power_PeripheralOn(void) { #ifdef POWER Port_Write(POWER, POWER_ON, false); -#ifdef BUTTONS_LED + #ifdef BUTTONS_LED Port_Write(BUTTONS_LED, HIGH, false); -#endif + #endif delay(50); // Give peripherals some time to settle down #endif } @@ -28,8 +28,8 @@ void Power_PeripheralOn(void) { void Power_PeripheralOff(void) { #ifdef POWER Port_Write(POWER, POWER_OFF, false); -#ifdef BUTTONS_LED + #ifdef BUTTONS_LED Port_Write(BUTTONS_LED, LOW, false); -#endif + #endif #endif }