Skip to content

Commit

Permalink
Network error to change led signaling
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Oct 9, 2020
1 parent ce3d5a0 commit d7cc575
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/src/system_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ void establish_cloud_connection()
// the last error diagnostic is used only for communication errors since we cannot mix
// HAL and communication error codes without specifying the category of an error
WARN("Cloud socket connection failed: %d", connect_result);
if (connect_result == SYSTEM_ERROR_NETWORK) {
LED_SIGNAL_STOP(CLOUD_HANDSHAKE);
LED_SIGNAL_STOP(CLOUD_CONNECTING);
}
SPARK_CLOUD_SOCKETED = 0;

diag->status(CloudDiagnostics::DISCONNECTED);
Expand Down

0 comments on commit d7cc575

Please sign in to comment.