fix(ui,cpn): Error in value conversion when loading LS data (#3026)

* Fix error in value conversion when loading logical switch data from YAML files (for 'Edge' and 'Timer' functions).

* Remove debug print.

* Fix handling of telemetry sensors in Companion.
This commit is contained in:
philmoz
2023-01-17 14:35:13 +10:00
committed by GitHub
parent 0610449c82
commit 7dc2f89917
3 changed files with 4 additions and 4 deletions
@@ -1647,7 +1647,7 @@ static delayval_t timerValue2lsw(uint32_t t)
{
if (t < 20) {
return t - 129;
} else if (600) {
} else if (t < 600) {
return t / 5 - 113;
} else {
return t / 10 - 53;