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:
parent
52d45ff72b
commit
ed42d59c94
2 changed files with 7 additions and 5 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue