Skip to content

Commit d37e8ea

Browse files
committed
Use correct printf format for robogotchi id
1 parent 742ce5b commit d37e8ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command_interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ void command_interface_process_byte(char incoming)
415415
// Return robogotchi unique ID
416416
NRF_LOG_INFO("robogotchi ID command received");
417417
NRF_LOG_FLUSH();
418-
sprintf((char *)command_response_buffer, "roboid,%02x%02x", NRF_FICR->DEVICEID[0], NRF_FICR->DEVICEID[1]);
418+
sprintf((char *)command_response_buffer, "roboid,%02lx%02lx", NRF_FICR->DEVICEID[0], NRF_FICR->DEVICEID[1]);
419419
m_ble_tx_logbuffer(command_response_buffer, strlen((const char *)command_response_buffer));
420420
}
421421

0 commit comments

Comments
 (0)