mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-15 12:04:05 +08:00
Tici hardware abstraction layer (#2183)
* rename android hardware
* add tici class
* elif
* read correct serial number
* Update release files
* Get IMEI
* Refactor AT command
* move get_cmdline into base class
* Remove unused import
* Small cleanup
old-commit-hash: c90cb1b529
This commit is contained in:
+4
-1
@@ -3,7 +3,8 @@ import random
|
||||
from typing import cast
|
||||
|
||||
from cereal import log
|
||||
from common.android import Android
|
||||
from common.hardware_android import Android
|
||||
from common.hardware_tici import Tici
|
||||
from common.hardware_base import HardwareBase
|
||||
|
||||
EON = os.path.isfile('/EON')
|
||||
@@ -50,5 +51,7 @@ class Pc(HardwareBase):
|
||||
|
||||
if EON:
|
||||
HARDWARE = cast(HardwareBase, Android())
|
||||
elif TICI:
|
||||
HARDWARE = cast(HardwareBase, Tici())
|
||||
else:
|
||||
HARDWARE = cast(HardwareBase, Pc())
|
||||
|
||||
Reference in New Issue
Block a user