Skip to content

Commit e87ff63

Browse files
committed
adjustment of deming time calculation
1 parent c32552d commit e87ff63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/zunoG2/cores/ZWSupport/ZWCCSwitchMultilevel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static int _start_level(uint8_t channel, const ZUNOCommandCmd_t *cmd, ZUNOComman
8686
if (targetValue == current_level)
8787
return (ZUNO_COMMAND_PROCESSED);
8888
__zuno_BasicUniversalTimerStop(channel);
89-
step = step / (ZUNO_TIMER_SWITCH_MAX_VALUE + 0x1);
89+
step = step / (ZUNO_TIMER_SWITCH_MAX_VALUE);
9090
if ((parameter = zunoTimerTreadDimingCreate()) == NULL)
9191
return (ZUNO_COMMAND_BLOCKED_FAILL);
9292
parameter->channel = channel;

0 commit comments

Comments
 (0)