Fixes typo in tmp buffer
This commit is contained in:
parent
599d9a2b3b
commit
974d675621
|
@ -30,7 +30,7 @@ static char *read_response(int serial_fd) {
|
||||||
timer_start(3);
|
timer_start(3);
|
||||||
while (true) {
|
while (true) {
|
||||||
errno = 0;
|
errno = 0;
|
||||||
uint8_t tmp[MAX_RESPONSE_LEN] = {0};
|
uint8_t tmp[RESPONSE_BUF_LEN] = {0};
|
||||||
int bytes_read = read(serial_fd, tmp, RESPONSE_BUF_LEN);
|
int bytes_read = read(serial_fd, tmp, RESPONSE_BUF_LEN);
|
||||||
if (bytes_read < 0) {
|
if (bytes_read < 0) {
|
||||||
if (errno != EAGAIN || errno != EWOULDBLOCK) {
|
if (errno != EAGAIN || errno != EWOULDBLOCK) {
|
||||||
|
|
Loading…
Reference in New Issue