Skip to content

Commit

Permalink
replace comma in netspeed with white space
Browse files Browse the repository at this point in the history
  • Loading branch information
NateLol authored Jul 2, 2020
1 parent 27a48c8 commit c69ea06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Example_Code/example_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,9 @@ void testnetspeed(int standalone)
else{
setTextSize(1);
oled_write(24);
if (in < 1000) sprintf(buf, "%db/s,", in);
else if (in > 1000000) sprintf(buf, "%.2fm/s,", in/1000000.0);
else sprintf(buf, "%.2fk/s,", in/1000.0);
if (in < 1000) sprintf(buf, "%db/s ", in);
else if (in > 1000000) sprintf(buf, "%.2fm/s ", in/1000000.0);
else sprintf(buf, "%.2fk/s ", in/1000.0);
print_str(buf);
oled_write(25);
if (out < 1000) sprintf(buf, "%db/s", out);
Expand Down

0 comments on commit c69ea06

Please sign in to comment.