From a81a9b57f32b79b38efa75c5bf8ebd205bd9e1f5 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 28 Mar 2023 13:24:42 -0600 Subject: just whitespace / comments --- spaghetti-monster/fsm-adc.c | 2 +- spaghetti-monster/fsm-misc.c | 4 ++-- spaghetti-monster/fsm-states.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spaghetti-monster/fsm-adc.c b/spaghetti-monster/fsm-adc.c index ce7a31c..60eb843 100644 --- a/spaghetti-monster/fsm-adc.c +++ b/spaghetti-monster/fsm-adc.c @@ -192,7 +192,7 @@ ISR(ADC_vect) { temp += 0x80; // Add 1/2 to get correct rounding on division below temp >>= 8; // Divide result to get Kelvin m = (temp << 6); // left align it - } + } else { m = (ADC0.RES << 6); } // voltage, force left-alignment #else diff --git a/spaghetti-monster/fsm-misc.c b/spaghetti-monster/fsm-misc.c index c2c1afe..9a10a9c 100644 --- a/spaghetti-monster/fsm-misc.c +++ b/spaghetti-monster/fsm-misc.c @@ -138,8 +138,8 @@ void indicator_led(uint8_t lvl) { AUXLED2_PORT.OUTSET = (1 << AUXLED2_PIN); // set as high #endif break; - - #else + + #else // MCU is old tiny style, not newer mega style case 0: // indicator off DDRB &= 0xff ^ (1 << AUXLED_PIN); diff --git a/spaghetti-monster/fsm-states.c b/spaghetti-monster/fsm-states.c index 4d9ac08..e368277 100644 --- a/spaghetti-monster/fsm-states.c +++ b/spaghetti-monster/fsm-states.c @@ -16,7 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - + #ifndef FSM_STATES_C #define FSM_STATES_C -- cgit v1.2.3