File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
libraries/Bluefruit52Lib/examples/Peripheral/image_upload Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ void bleuart_rx_callback(uint16_t conn_hdl)
207207 // do checksum later
208208
209209 // print speed summary
210- print_speed (totalPixel*3 + 7 , rxLastTime-rxStartTime);
210+ print_summary (totalPixel*3 + 7 , rxLastTime-rxStartTime);
211211
212212 // reset and waiting for new image
213213 totalPixel = imageWidth = imageHeight = 0 ;
@@ -234,7 +234,7 @@ void connect_callback(uint16_t conn_handle)
234234 tft.setTextColor (COLOR_WHITE);
235235}
236236
237- void print_speed (uint32_t count, uint32_t ms)
237+ void print_summary (uint32_t count, uint32_t ms)
238238{
239239 tft.setCursor (0 , imageHeight+5 );
240240 tft.print (" Received " );
@@ -251,11 +251,17 @@ void print_speed(uint32_t count, uint32_t ms)
251251
252252 tft.println (" seconds" );
253253
254- tft.print (" Speed: " );
254+ tft.print (" Speed " );
255255 tft.setTextColor (COLOR_YELLOW);
256256 tft.print ( (count / 1000 .0F ) / (ms / 1000 .0F ), 2 );
257257 tft.setTextColor (COLOR_WHITE);
258- tft.println (" KB/s" );
258+ tft.print (" KB/s with " );
259+
260+ tft.setTextColor (COLOR_YELLOW);
261+ tft.print (imageWidth); tft.print (" x " ); tft.print (imageHeight);
262+
263+ tft.setTextColor (COLOR_WHITE);
264+ tft.println (" Image" );
259265
260266 tft.setTextColor (COLOR_GREEN);
261267 tft.println (" Ready to receive new image" );
You can’t perform that action at this time.
0 commit comments