1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Add temperature conversion for ESC temp, tidy formatting

This commit is contained in:
Dan Nixon 2018-01-14 20:56:40 +00:00
parent 52d45ff72b
commit ed42d59c94
2 changed files with 7 additions and 5 deletions

View file

@ -765,7 +765,7 @@ TEST(OsdTest, TestElementCoreTemperature)
osdRefresh(simulationTime);
// then
displayPortTestBufferSubstring(1, 8, "00C");
displayPortTestBufferSubstring(1, 8, " 0C");
// given
simulationCoreTemperature = 33;
@ -775,7 +775,7 @@ TEST(OsdTest, TestElementCoreTemperature)
osdRefresh(simulationTime);
// then
displayPortTestBufferSubstring(1, 8, "33C");
displayPortTestBufferSubstring(1, 8, " 33C");
// given
osdConfigMutable()->units = OSD_UNIT_IMPERIAL;
@ -785,7 +785,7 @@ TEST(OsdTest, TestElementCoreTemperature)
osdRefresh(simulationTime);
// then
displayPortTestBufferSubstring(1, 8, "91F");
displayPortTestBufferSubstring(1, 8, " 91F");
}
/*