заработало чтение, надо привести в порядок код
This commit is contained in:
@@ -15,8 +15,7 @@ void setup() {
|
||||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
RS_UART_Handler(&hmodbus1); // нужно вызывать периодически
|
||||
RS_TIM_Handler(&hmodbus1); // проверка таймаута
|
||||
RS_Process(&hmodbus1);
|
||||
//delay(500);
|
||||
//Serial.println("start");
|
||||
//rs_huart.println("start1");
|
||||
|
||||
Reference in New Issue
Block a user