Commits

Tino de Bruijn  committed cded73a

Set reporting of a pin to True, when its port is enabled for reporting

  • Participants
  • Parent commits 8bad8aa

Comments (0)

Files changed (1)

File pyfirmata/pyfirmata.py

         msg = chr(REPORT_DIGITAL + self.port_number)
         msg += chr(1)
         self.board.sp.write(msg)
+        for pin in self.pins:
+            if pin.mode == INPUT:
+                pin.reporting = True # TODO Shouldn't this happen at the pin?
         
     def disable_reporting(self):
         """ Disable the reporting of the port """