mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-07-26 12:22:04 +08:00
konik registration
This commit is contained in:
@@ -135,4 +135,5 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
|
||||
{"NoFSC", {PERSISTENT, BOOL}},
|
||||
{"BlendedACC", {PERSISTENT, BOOL}},
|
||||
{"ManualTransmission", {PERSISTENT, BOOL}},
|
||||
{"KonikId", {PERSISTENT, STRING}},
|
||||
};
|
||||
|
||||
@@ -33,11 +33,7 @@ def register(show_spinner=False) -> str | None:
|
||||
"""
|
||||
params = Params()
|
||||
|
||||
dongle_id: str | None = params.get("DongleId")
|
||||
if dongle_id is None and Path(Paths.persist_root()+"/comma/dongle_id").is_file():
|
||||
# not all devices will have this; added early in comma 3X production (2/28/24)
|
||||
with open(Paths.persist_root()+"/comma/dongle_id") as f:
|
||||
dongle_id = f.read().strip()
|
||||
dongle_id: str | None = params.get("KonikId")
|
||||
|
||||
pubkey = Path(Paths.persist_root()+"/comma/id_rsa.pub")
|
||||
if not pubkey.is_file():
|
||||
|
||||
Reference in New Issue
Block a user