tsi/main.cpp is using wrong `printf` format

`%` needs to be escaped as well.
pull/9984/head
Jan Jongboom 2019-03-07 16:36:29 +01:00 committed by GitHub
parent a87c7c82f3
commit a5c6d423bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ int main(void) {
TSISensor tsi;
while (true) {
printf("slider percentage: %f%\r\n", tsi.readPercentage());
printf("slider percentage: %f%%\r\n", tsi.readPercentage());
printf("slider distance: %dmm\r\n", tsi.readDistance());
wait(1);
led = !led;