mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
Params: python-like interface (#20506)
* rebase master
* delete outdated test_params.c
* putBool & more robust getBool
* putBool(SshEnabled)
old-commit-hash: 98e55996f6
This commit is contained in:
@@ -27,6 +27,6 @@ public:
|
||||
};
|
||||
static void set_display_power(bool on) {};
|
||||
|
||||
static bool get_ssh_enabled() { return Params().read_db_bool("SshEnabled"); };
|
||||
static void set_ssh_enabled(bool enabled) { Params().write_db_value("SshEnabled", (enabled ? "1" : "0")); };
|
||||
static bool get_ssh_enabled() { return Params().getBool("SshEnabled"); };
|
||||
static void set_ssh_enabled(bool enabled) { Params().putBool("SshEnabled", enabled); };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user