]> git.tdb.fi Git - model-railway-devices.git/commitdiff
Volatile is not needed here
authorMikko Rasa <tdb@tdb.fi>
Tue, 1 Apr 2014 10:52:58 +0000 (13:52 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 1 Apr 2014 10:52:58 +0000 (13:52 +0300)
arducontrol/monitor.c

index 920f56ded6ccb579d2a025880449cbe58b2edfc7..c3804fc5c5632f37b3941e9feff83994105f31ac 100644 (file)
@@ -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;