aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-03-28 13:24:42 -0600
committerSelene ToyKeeper2023-03-28 13:24:42 -0600
commita81a9b57f32b79b38efa75c5bf8ebd205bd9e1f5 (patch)
treef7bb2ef702da82a63f5fd573e7aed101534077fe
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
-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
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.