Skip to content

Commit a825a00

Browse files
committed
MCU8MASS-1719 Change where the data LED is turned off for HTTP(s)
1 parent 0c2a8ce commit a825a00

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/http_client.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ static HttpResponse sendData(const char* endpoint,
151151
return http_response;
152152
}
153153

154+
LedCtrl.off(Led::DATA, true);
155+
154156
// We pass in NULL as the start character here as the URC data will only
155157
// contain the payload, not the URC identifier
156158
bool got_response_code = SequansController.extractValueFromCommandResponse(
@@ -176,7 +178,6 @@ static HttpResponse sendData(const char* endpoint,
176178
}
177179

178180
LedCtrl.off(Led::CON, true);
179-
LedCtrl.off(Led::DATA, true);
180181

181182
return http_response;
182183
}
@@ -234,6 +235,8 @@ static HttpResponse queryData(const char* endpoint,
234235
return http_response;
235236
}
236237

238+
LedCtrl.off(Led::DATA, true);
239+
237240
bool got_response_code = SequansController.extractValueFromCommandResponse(
238241
http_response_buffer,
239242
HTTP_RESPONSE_STATUS_CODE_INDEX,

0 commit comments

Comments
 (0)