reduce timeout value on modbus
This commit is contained in:
@@ -34,9 +34,9 @@ void do_kraftsensor(){
|
||||
|
||||
/* read 2 16bit values and merge to 32bit signed integer */
|
||||
readReg(1,0,2);
|
||||
if(wait_receive(2, m_data, 100)){
|
||||
if(wait_receive(2, m_data, 10)){
|
||||
kraftsensor_valid = 0;
|
||||
//printf("modbus error\n\r");
|
||||
printf("modbus error\n\r");
|
||||
}
|
||||
else{
|
||||
kraftsensor_valid = 1;
|
||||
|
||||
Reference in New Issue
Block a user