Skip to content

Commit

Permalink
Fix enable logic to invert control state.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdicola authored Feb 26, 2018
1 parent a9b4736 commit 7a5058f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_si5351.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def outputs_enabled(self):

@outputs_enabled.setter
def outputs_enabled(self, val):
if val:
if not val:
self._write_u8(_SI5351_REGISTER_3_OUTPUT_ENABLE_CONTROL, 0xFF)
else:
self._write_u8(_SI5351_REGISTER_3_OUTPUT_ENABLE_CONTROL, 0x00)

0 comments on commit 7a5058f

Please sign in to comment.