You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using rules, provide the output of this command: Backlog Rule1; Rule2; Rule3:
Rulesoutputhere:
Provide the output of this command: Status 0:
Set weblog to 4 and then, when you experience your issue, provide the output of the Console log:
Consoleoutputhere:
TO REPRODUCE
Steps to reproduce the behavior:
AdcParam1 2,14800,2200,-3911,0
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
I expect negative value for param3
18:51:21.301 CMD: AdcParam1 2,14800,2200,-3911,0
18:51:21.312 MQT: stat/tasmota_E1B5EC/RESULT = {"AdcParam1":[17,14800,2200,3911,0]}
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
I removed abs() from
Adc[channel].param[2] = abs(strtol(ArgV(argument, 4), nullptr, 10)); // param3 = abs(int)
and problem was solved
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered:
PROBLEM DESCRIPTION
For some sensors you should use negative values param3 in AdcParam. But parser AdcParam use abs() for param3 and param4.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:Backlog Rule1; Rule2; Rule3
:Status 0
:weblog
to 4 and then, when you experience your issue, provide the output of the Console log:TO REPRODUCE
Steps to reproduce the behavior:
AdcParam1 2,14800,2200,-3911,0
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
I expect negative value for param3
18:51:21.301 CMD: AdcParam1 2,14800,2200,-3911,0
18:51:21.312 MQT: stat/tasmota_E1B5EC/RESULT = {"AdcParam1":[17,14800,2200,3911,0]}
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
I removed abs() from
Adc[channel].param[2] = abs(strtol(ArgV(argument, 4), nullptr, 10)); // param3 = abs(int)
and problem was solved
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: