From f43721045116bf444fd31567a2f61d0e52d07ce1 Mon Sep 17 00:00:00 2001 From: Emily Wilson Date: Thu, 6 Jun 2019 17:05:36 -0700 Subject: fix: WiFi/Bluetooth testing causes testService to hang Editing test case to exit after three failed attempts at serial communication HW-25 --- upload/upload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/upload.c b/upload/upload.c index 910b8e5..c6aea41 100644 --- a/upload/upload.c +++ b/upload/upload.c @@ -37,7 +37,7 @@ void configureSerialPort(FlashState* s, int baud) { if (s->serialPort != -1) { close(s->serialPort); } - s->serialPort = fd_openSerial(SERIAL_PORT_PATH, MTK7697_BAUD); + s->serialPort = fd_openSerial(SERIAL_PORT_PATH, baud); } bool flashDa(FlashState* s) { @@ -104,7 +104,7 @@ bool mtk_verifyInitSequence(FlashState* s) { LE_INFO("Init done"); break; } - if((util_getUnixDatetime() - s->startTime > 3) && data == 0){ + if((util_getUnixDatetime() - s->startTime > 3) && data != 'C'){ LE_INFO("Retrying serial"); retryInitSequence(s); } -- cgit v1.2.3