Skip to content

Commit

Permalink
clang cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vicloginov committed Nov 7, 2023
1 parent cb09ed4 commit a67aa47
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Examples/MAX78000/CNN/UNet-demo/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,10 @@ int main(void)
TFT_Print(buff, 55, 30, font_2, snprintf(buff, sizeof(buff), "ANALOG DEVICES "));
TFT_Print(buff, 15, 50, font_2, snprintf(buff, sizeof(buff), "U-Net Segmentation Demo "));
TFT_Print(buff, 120, 90, font_1, snprintf(buff, sizeof(buff), "Ver. 1.1.0 "));
TFT_Print(buff, 55, 130, font_1, snprintf(buff, sizeof(buff), "Building(red), Sky(blue) "));
TFT_Print(buff, 5, 170, font_1, snprintf(buff, sizeof(buff), "Foliage(green), Unknown(black) "));
TFT_Print(buff, 55, 130, font_1,
snprintf(buff, sizeof(buff), "Building(red), Sky(blue) "));
TFT_Print(buff, 5, 170, font_1,
snprintf(buff, sizeof(buff), "Foliage(green), Unknown(black) "));
TFT_Print(buff, 10, 210, font_2, snprintf(buff, sizeof(buff), "PRESS PB1(SW1) TO START "));
while (!PB_Get(0)) {}

Expand Down Expand Up @@ -565,12 +567,12 @@ int main(void)

printf("Time for CNN: %d us\n\n", cnn_time);

TFT_Print(buff, 40, 180, font_1, snprintf(buff, sizeof(buff), "Inference Time: %.3f ms ",
TFT_Print(buff, 40, 180, font_1,
snprintf(buff, sizeof(buff), "Inference Time: %.3f ms ",
(float)cnn_time / 1000));

#if !defined(USE_SPIDATA)
TFT_Print(buff, 0, 212, font_1,
snprintf(buff, sizeof(buff), "PRESS PB1(SW1) TO CONTINUE"));
TFT_Print(buff, 0, 212, font_1, snprintf(buff, sizeof(buff), "PRESS PB1(SW1) TO CONTINUE"));
while (!PB_Get(0)) {}
#else
SPI_FLAG = false;
Expand Down

0 comments on commit a67aa47

Please sign in to comment.