Skip to content

Commit 9305ccc

Browse files
committed
main: Remove unnecessary delay
Remove delay after decoding shadow to execute command, as its not reproducible. If the issue resurfaces, it should be investigated further. Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
1 parent a19461b commit 9305ccc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app/src/main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -868,12 +868,6 @@ static void handle_cloud_shadow_response(struct main_state *state_object,
868868
if (msg->type == CLOUD_SHADOW_RESPONSE_DELTA) {
869869
/* Clear the shadow delta by reporting back the command to the cloud. */
870870
update_shadow_reported_section(&config, command_type, command_id);
871-
/* Workaround: Add a 5-second delay to ensure that nRF Cloud clears the
872-
* delta internally before executing the command. If the command is a
873-
* provisioning request, the device will disconnect from the cloud. If this
874-
* happens too quickly, nRF Cloud may not clear the delta properly.
875-
*/
876-
k_sleep(K_SECONDS(5));
877871
command_execute(command_type);
878872
} else {
879873
/* For desired responses (initial shadow poll), only report config without

0 commit comments

Comments
 (0)