Ошибка обработки состояния портов 1902011712
This commit is contained in:
parent
7dbf043923
commit
fa3bd10033
|
|
@ -9,7 +9,7 @@
|
||||||
#message "link global not defined"
|
#message "link global not defined"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define VERSION "2.0b_1902011653"
|
#define VERSION "2.0b_1902011712"
|
||||||
#define MAX_FIFO_SIZE 20
|
#define MAX_FIFO_SIZE 20
|
||||||
#define BRAKER_COUNT 3
|
#define BRAKER_COUNT 3
|
||||||
|
|
||||||
|
|
@ -121,3 +121,4 @@ extern BrakerProcess brakers[BRAKER_COUNT];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
10
main.tc
10
main.tc
|
|
@ -101,10 +101,14 @@ if (!inEncCalibrate()){
|
||||||
// sensors process
|
// sensors process
|
||||||
for (int i=1; i <= SENSORS; i++){
|
for (int i=1; i <= SENSORS; i++){
|
||||||
if (pinChange(i)){
|
if (pinChange(i)){
|
||||||
bool state = getPinStateS(i,!config.debug.EncoderStateMode);
|
//bool state = getPinStateS(i,!config.debug.EncoderStateMode);
|
||||||
if (getEncEnabled(i,state))
|
bool state = getPinStateS(i,true);
|
||||||
getPinStateS(i,config.debug.EncoderStateMode);
|
if (getEncEnabled(i,state)){
|
||||||
|
// getPinStateS(i,config.debug.EncoderStateMode);
|
||||||
send_sensor(i,state);
|
send_sensor(i,state);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue