[all] Bug in AUTOSOURCE feature

This commit is contained in:
bsongis@gmail.com
2013-04-04 06:29:12 +00:00
parent 9092f52999
commit 48c913a96a
+2 -1
View File
@@ -1119,9 +1119,9 @@ bool getSwitch(int8_t swtch, bool nc)
}
swstate_t switches_states = 0;
tmr10ms_t s_move_last_time = 0;
int8_t getMovedSwitch()
{
static tmr10ms_t s_move_last_time = 0;
int8_t result = 0;
#if defined(PCBTARANIS)
@@ -1175,6 +1175,7 @@ int8_t getMovedSwitch()
#if defined(AUTOSOURCE)
int8_t getMovedSource()
{
static tmr10ms_t s_move_last_time = 0;
static int16_t sourcesStates[NUM_STICKS+NUM_POTS];
int8_t result = 0;