From 8f10e9c155d5be958517e5a8513587118fd68f73 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Thu, 30 Jul 2020 00:04:55 -0600 Subject: reduced ROM another 12+6 bytes with more non-volatile vars (because they don't need to be volatile any more) --- spaghetti-monster/fsm-adc.h | 4 ++-- spaghetti-monster/fsm-ramping.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'spaghetti-monster') 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 -- cgit v1.2.3