Skip to content

Commit

Permalink
family name now come from device object definition
Browse files Browse the repository at this point in the history
  • Loading branch information
XdoctorwhoZ committed Sep 17, 2023
1 parent c51f36a commit e408dea
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion platform/panduza_platform/core/platform_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_base_name(self):
# ---

def get_family(self):
return "family"
return self.get_config_field("model")

# ---

Expand Down
1 change: 1 addition & 0 deletions platform/panduza_platform/devices/ftdi/ft232h_jtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def _PZA_DEV_config(self):
"""
"""
return {
"family": "TBD",
"model": "Ft232h_jtag",
"manufacturer": "Ftdi"
}
Expand Down
1 change: 1 addition & 0 deletions platform/panduza_platform/devices/hanmatek/hm310t.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def _PZA_DEV_config(self):
"""
"""
return {
"family": "PSU",
"model": "Hm310t",
"manufacturer": "Hanmatek"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def _PZA_DEV_config(self):
"""
"""
return {
"family": "BPS",
"model": "FakeBps",
"manufacturer": "Panduza"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def _PZA_DEV_config(self):
"""
"""
return {
"family": "TBD",
"model": "FakeDioController",
"manufacturer": "Panduza"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def _PZA_DEV_config(self):
"""
"""
return {
"family": "TBD",
"model": "FakeRelayController",
"manufacturer": "Panduza"
}
Expand Down
1 change: 1 addition & 0 deletions platform/panduza_platform/devices/panduza/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def _PZA_DEV_config(self):
"""
"""
return {
"family": "TBD",
"model": "Machine",
"manufacturer": "Panduza"
}
Expand Down

0 comments on commit e408dea

Please sign in to comment.