File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ static void state_connecting_backoff_run(void *o)
423
423
LOG_DBG ("%s" , __func__ );
424
424
425
425
if (state_object -> chan == & PRIV_CLOUD_CHAN ) {
426
- enum priv_cloud_msg msg = * (enum priv_cloud_msg * )state_object -> msg_buf ;
426
+ const enum priv_cloud_msg msg = * (const enum priv_cloud_msg * )state_object -> msg_buf ;
427
427
428
428
if (msg == CLOUD_BACKOFF_EXPIRED ) {
429
429
STATE_SET (cloud_state , STATE_CONNECTING_ATTEMPT );
@@ -613,7 +613,7 @@ static void state_connected_ready_run(void *o)
613
613
#endif /* CONFIG_APP_ENVIRONMENTAL */
614
614
615
615
if (state_object -> chan == & PAYLOAD_CHAN ) {
616
- struct cloud_payload * payload = MSG_TO_PAYLOAD (state_object -> msg_buf );
616
+ const struct cloud_payload * payload = MSG_TO_PAYLOAD (state_object -> msg_buf );
617
617
618
618
err = nrf_cloud_coap_json_message_send (payload -> buffer , false, false);
619
619
if (err ) {
You can’t perform that action at this time.
0 commit comments