From: Mikko Rasa Date: Tue, 1 Apr 2014 10:52:58 +0000 (+0300) Subject: Volatile is not needed here X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=bb375547a3f3611fab8d1f9318d7588d203c8524;p=model-railway-devices.git Volatile is not needed here --- diff --git a/arducontrol/monitor.c b/arducontrol/monitor.c index 920f56d..c3804fc 100644 --- a/arducontrol/monitor.c +++ b/arducontrol/monitor.c @@ -6,13 +6,13 @@ static uint16_t track_current_samples[16] = { 0 }; static uint8_t track_current_head = 0; -static volatile uint16_t track_current_sum = 0; +static uint16_t track_current_sum = 0; static uint16_t overcurrent_limit = 9707; static uint8_t overcurrent_sent = 0; static uint16_t input_voltage_samples[16] = { 0 }; static uint8_t input_voltage_head = 0; -static volatile uint16_t input_voltage_sum = 0; +static uint16_t input_voltage_sum = 0; static volatile uint8_t adc_state = 0; static volatile uint16_t adc_value = 0;