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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user