diff --git a/global.th b/global.th index fd0d80f..75d20c9 100644 --- a/global.th +++ b/global.th @@ -9,7 +9,7 @@ #message "link global not defined" #endif -#define VERSION "2.0b_1902011653" +#define VERSION "2.0b_1902011712" #define MAX_FIFO_SIZE 20 #define BRAKER_COUNT 3 @@ -121,3 +121,4 @@ extern BrakerProcess brakers[BRAKER_COUNT]; + diff --git a/main.tc b/main.tc index 7687d23..b6cb0b6 100644 --- a/main.tc +++ b/main.tc @@ -101,10 +101,14 @@ if (!inEncCalibrate()){ // sensors process for (int i=1; i <= SENSORS; i++){ if (pinChange(i)){ - bool state = getPinStateS(i,!config.debug.EncoderStateMode); - if (getEncEnabled(i,state)) - getPinStateS(i,config.debug.EncoderStateMode); + //bool state = getPinStateS(i,!config.debug.EncoderStateMode); + bool state = getPinStateS(i,true); + if (getEncEnabled(i,state)){ + // getPinStateS(i,config.debug.EncoderStateMode); send_sensor(i,state); + } + + } } }