summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmily Wilson <emily@brnkl.io>2019-06-06 17:05:36 -0700
committerEmily Wilson <emily@brnkl.io>2019-06-06 17:05:36 -0700
commitf43721045116bf444fd31567a2f61d0e52d07ce1 (patch)
tree10d8c212bd299d1d62a5c432d6e8f4d96f4d4378
parent4e6723799d6333afa29cd1a202350bdf10573321 (diff)
fix: WiFi/Bluetooth testing causes testService to hang
Editing test case to exit after three failed attempts at serial communication HW-25
-rw-r--r--upload/upload.c4
1 files 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);
}