Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def toggle_en_pullups(self, widget, data=None):
if widget.get_active():
pfio.write_pullups(0xff)
else:
pfio.write_pullups(0)
def toggle_en_pullups(self, widget, data=None):
if widget.get_active():
pfio.write_pullups(0xff)
else:
pfio.write_pullups(0)