mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-10-12 06:11:35 +08:00
fix uninitialized variable
This commit is contained in:
parent
6728d8a1cc
commit
bc14f45092
@ -269,7 +269,7 @@ void COMMAND::check_command(String buffer)
|
||||
//read a buffer in an array
|
||||
void COMMAND::read_buffer_serial(uint8_t *b, size_t len)
|
||||
{
|
||||
for (long i; i< len; i++) {
|
||||
for (long i = 0; i< len; i++) {
|
||||
read_buffer_serial(*b);
|
||||
*b++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user