aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-07-30 00:04:55 -0600
committerSelene ToyKeeper2020-07-30 00:04:55 -0600
commit8f10e9c155d5be958517e5a8513587118fd68f73 (patch)
tree0706bf7bd49410b89949ccf74c1390750d39d04b
parentreduced ROM size 56 bytes by making actual_level non-volatile (diff)
downloadanduril-8f10e9c155d5be958517e5a8513587118fd68f73.tar.gz
anduril-8f10e9c155d5be958517e5a8513587118fd68f73.tar.bz2
anduril-8f10e9c155d5be958517e5a8513587118fd68f73.zip
reduced ROM another 12+6 bytes with more non-volatile vars
(because they don't need to be volatile any more)
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/fsm-adc.h4
-rw-r--r--spaghetti-monster/fsm-ramping.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/spaghetti-monster/fsm-adc.h b/spaghetti-monster/fsm-adc.h
index 241dee4..cc33264 100644
--- a/spaghetti-monster/fsm-adc.h
+++ b/spaghetti-monster/fsm-adc.h
@@ -51,7 +51,7 @@ uint8_t adc_deferred_enable = 0; // stop waiting and run the deferred code
void adc_deferred(); // do the actual ADC-related calculations
static inline void ADC_voltage_handler();
-volatile uint8_t voltage = 0;
+uint8_t voltage = 0;
#ifdef USE_LVP
void low_voltage();
#endif
@@ -82,7 +82,7 @@ void battcheck();
#define THERM_CAL_OFFSET 0
#endif
// temperature now, in C (ish)
-volatile int16_t temperature;
+int16_t temperature;
uint8_t therm_ceil = DEFAULT_THERM_CEIL;
int8_t therm_cal_offset = 0;
volatile uint8_t reset_thermal_history = 1;
diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h
index 9f29f27..f177db9 100644
--- a/spaghetti-monster/fsm-ramping.h
+++ b/spaghetti-monster/fsm-ramping.h
@@ -33,7 +33,7 @@ uint8_t tint = 128;
#ifdef USE_SET_LEVEL_GRADUALLY
// adjust brightness very smoothly
-volatile uint8_t gradual_target;
+uint8_t gradual_target;
inline void set_level_gradually(uint8_t lvl);
void gradual_tick();
#endif