Skip to content

Commit

Permalink
suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Oct 22, 2024
1 parent be68857 commit e8b4d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watch-faces/demo/irda_demo_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ bool irda_demo_face_loop(movement_event_t event, void *context) {
size_t bytes_read = uart_read_instance(0, data, 32);
if (bytes_read) {
char buf[14];
snprintf(buf, 11, "IR%2d%s", bytes_read, data);
snprintf(buf, 11, "IR%2d%c%c%c%c%c%c", bytes_read, data[0], data[1], data[2], data[3], data[4], data[5]);
watch_display_text(WATCH_POSITION_FULL, buf);
data[31] = 0;
printf("%s\n", data);
Expand Down

0 comments on commit e8b4d4d

Please sign in to comment.