Skip to content

Commit

Permalink
#60 make base driver the i2c driver
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Rey committed Mar 1, 2023
1 parent a54cd6b commit f911f2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions EosPayload/drivers/I2C_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

class I2CDriver(DriverBase):

@staticmethod
def enabled() -> bool:
return False

@staticmethod
def get_device_id() -> Device:
return Device.MISC_SENSOR_1
Expand Down
4 changes: 2 additions & 2 deletions EosPayload/drivers/base_sensor_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ class SensorDriver(DriverBase):

@staticmethod
def get_device_id() -> Device:
return Device.MISC_SENSOR_1
return Device.MISC_SENSOR_3

@staticmethod
def get_device_name() -> str:
return "Sensor Driver"
return "Sensor-Driver"

@staticmethod
def read_thread_enabled() -> bool:
Expand Down

0 comments on commit f911f2e

Please sign in to comment.