QuirkyCort / ev3dev-lang-python-fast

High performance drop-in replacement for ev3dev-lang-python
GNU General Public License v3.0
8 stars 6 forks source link

Class ColorSensor __init__ bug #3

Closed misolietavec closed 4 years ago

misolietavec commented 4 years ago

The correct __init__ should be:

  def __init__(self, address=None):
    self.red_max = 300
    self.green_max = 300
    self.blue_max = 300
    super().__init__(address)
QuirkyCort commented 4 years ago

Sorry for the late reply. Not used to github and didn't realize that I have to watch the repository to be notified of new issues even if I'm the owner.

You're right about the error. I've since corrected it. Don't have my EV3 with me now, so I'll close the issue when I have some time to test it.