From dcf1e0c394d1ef51039f58d33f25849f02801ab7 Mon Sep 17 00:00:00 2001 From: MoreTorque <104254025+MoreTore@users.noreply.github.com> Date: Sun, 25 Jan 2026 09:01:29 -0600 Subject: [PATCH] konik registration --- common/params_keys.h | 1 + system/athena/registration.py | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/common/params_keys.h b/common/params_keys.h index 5d40d3378..e04a630e8 100644 --- a/common/params_keys.h +++ b/common/params_keys.h @@ -135,4 +135,5 @@ inline static std::unordered_map keys = { {"NoFSC", {PERSISTENT, BOOL}}, {"BlendedACC", {PERSISTENT, BOOL}}, {"ManualTransmission", {PERSISTENT, BOOL}}, + {"KonikId", {PERSISTENT, STRING}}, }; diff --git a/system/athena/registration.py b/system/athena/registration.py index 405b2423f..0e7eda2ba 100755 --- a/system/athena/registration.py +++ b/system/athena/registration.py @@ -34,11 +34,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") # Create registration token, in the future, this key will make JWTs directly jwt_algo, private_key, public_key = get_key_pair()