aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-03-28 13:24:42 -0600
committerSelene ToyKeeper2023-03-28 13:24:42 -0600
commita81a9b57f32b79b38efa75c5bf8ebd205bd9e1f5 (patch)
treef7bb2ef702da82a63f5fd573e7aed101534077fe /spaghetti-monster
parentfast-blink the aux LED in standby when battery is low (diff)
downloadanduril-a81a9b57f32b79b38efa75c5bf8ebd205bd9e1f5.tar.gz
anduril-a81a9b57f32b79b38efa75c5bf8ebd205bd9e1f5.tar.bz2
anduril-a81a9b57f32b79b38efa75c5bf8ebd205bd9e1f5.zip
just whitespace / comments
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/fsm-adc.c2
-rw-r--r--spaghetti-monster/fsm-misc.c4
-rw-r--r--spaghetti-monster/fsm-states.c2
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 <http://www.gnu.org/licenses/>.
*/
-
+
#ifndef FSM_STATES_C
#define FSM_STATES_C