mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-10-01 22:30:32 +03:00
fixed some errors; renew readme
This commit is contained in:
@@ -372,7 +372,7 @@ static errcodes modbussend(const char *txt, text_cmd _U_ cmd){
|
||||
usart_send("Need amount of data for given fcode\n");
|
||||
return ERR_WRONGLEN;
|
||||
}
|
||||
if(N == 0 || N > MODBUSBUFSZO - 7){
|
||||
if(N == 0 || N > MODBUSBUFSZO - 9){
|
||||
usart_send("Data length too big\n");
|
||||
return ERR_BADVAL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user