Skip to content
Snippets Groups Projects
Commit 68642808 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Use elif and parentheses in conditionals

parent 8c136a5a
Branches
Tags
No related merge requests found
......@@ -268,12 +268,11 @@
#if (POWER_SUPPLY == 1) // 1 = ATX
#define PS_ON_AWAKE LOW
#define PS_ON_ASLEEP HIGH
#endif
#if (POWER_SUPPLY == 2) // 2 = X-Box 360 203W
#elif (POWER_SUPPLY == 2) // 2 = X-Box 360 203W
#define PS_ON_AWAKE HIGH
#define PS_ON_ASLEEP LOW
#endif
HAS_POWER_SWITCH = POWER_SUPPLY > 0 && defined(PS_ON_PIN) && PS_ON_PIN >= 0
HAS_POWER_SWITCH = (POWER_SUPPLY > 0 && defined(PS_ON_PIN) && PS_ON_PIN >= 0)
/**
* Temp Sensor defines
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment