1
0
Fork 0

Fixes typo in tmp buffer

This commit is contained in:
Shawn Nock 2019-05-22 15:25:32 +00:00
parent 599d9a2b3b
commit 974d675621
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ static char *read_response(int serial_fd) {
timer_start(3);
while (true) {
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);
if (bytes_read < 0) {
if (errno != EAGAIN || errno != EWOULDBLOCK) {