Skip to content

Fix Cmd_SetActiveTimerPlan when input is missing#5829

Merged
gizmocuz merged 1 commit into
domoticz:developmentfrom
kiddigital:fix/timerplanupdate
Oct 2, 2023
Merged

Fix Cmd_SetActiveTimerPlan when input is missing#5829
gizmocuz merged 1 commit into
domoticz:developmentfrom
kiddigital:fix/timerplanupdate

Conversation

@kiddigital

Copy link
Copy Markdown
Contributor

Small PR to fix #5827

When no/wrong parameter was passed (incorrect case for example), the function used 0 as the provided value (atoi of an empty string).

If another timerplan was active, it would get reset to the 0 (default).

@gizmocuz gizmocuz merged commit a645555 into domoticz:development Oct 2, 2023
@gizmocuz

gizmocuz commented Oct 2, 2023

Copy link
Copy Markdown
Contributor

Thanks for the quick fix!

@kiddigital kiddigital deleted the fix/timerplanupdate branch October 12, 2023 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Json API does not return error on wrong setactivetimerplan request

2 participants