Improvements to setOutPut() #20
Labels
enhancement
New feature or request
Seeed_Arduino_AS5600
Label for Seeed_Arduino_AS5600
UAY
Unassigned yet
There is a bug where only
mode == 0
can set the output mode.mode == 1
is trapped by the firstif
clause and never written. And a bitwise operations bug becauseconfig_status & 0xef
can only set OUTS1:0 to 10 (digital PWM) if the register was already 10 or 11, not if it was 00 or 01.Suggested improvements:
if
clausereadOneByte()
call, function now twice as fastlowByte()
, since by definition config_status is a single byteThe text was updated successfully, but these errors were encountered: