Ошибка обработки состояния портов 1902011712

This commit is contained in:
Иван Мокротоваров 2019-02-01 17:13:25 +03:00
parent 7dbf043923
commit fa3bd10033
2 changed files with 9 additions and 4 deletions

View File

@ -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];

10
main.tc
View File

@ -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);
}
}
}
}