Skip to content

Commit a96a68f

Browse files
authored
got rid of printf and changes format to heX
1 parent db98938 commit a96a68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BUILD_DIR/t4_sensor1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ESOS_USER_TASK(loop) {
3838
//wait for UART availability to send output to Bully Bootloader
3939
ESOS_TASK_WAIT_ON_AVAILABLE_OUT_COMM();
4040

41-
sprintf(buffer, "%d\n", u16_data);
41+
ESOS_TASK_WAIT_ON_SEND_STRING(buffer, "%X\n", u16_data);
4242
ESOS_TASK_WAIT_ON_SEND_STRING(buffer); //wait for data in buffer to be sent and release UART
4343
ESOS_TASK_SIGNAL_AVAILABLE_OUT_COMM();
4444
ESOS_TASK_WAIT_TICKS(LOOP_DELAY /2); /*this is half of the 1 second delay between samples

0 commit comments

Comments
 (0)