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
When using the writeAll function for Digital Outputs, the function will only turn on/off all Outputs regardless of input integer. For example, supplying any value greater than zero will turn ON all Outputs. Providing a zero will turn OFF all Outputs.
Within the function, it appears that the logical (&&) operator is being used where a bitwise (&) should be. I was able to test this with a Portenta Machine Control and confirmed that switching the operator fixes the issue and allows the integer to be correctly parsed into the individual outputs.
When using the writeAll function for Digital Outputs, the function will only turn on/off all Outputs regardless of input integer. For example, supplying any value greater than zero will turn ON all Outputs. Providing a zero will turn OFF all Outputs.
Function source code is here:
Arduino_PortentaMachineControl/src/DigitalOutputsClass.cpp
Line 78 in 563b200
Within the function, it appears that the logical (&&) operator is being used where a bitwise (&) should be. I was able to test this with a Portenta Machine Control and confirmed that switching the operator fixes the issue and allows the integer to be correctly parsed into the individual outputs.
Line w/ Operator:
Arduino_PortentaMachineControl/src/DigitalOutputsClass.cpp
Line 80 in 563b200
The text was updated successfully, but these errors were encountered: