mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-01 03:43:46 +08:00
loggerd: log HW-specific extras (#28084)
* loggerd: log HW-specific extras * fix value --------- Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: e24d28fd4512d8fd41a4a9ba610b1d450a3734a0
This commit is contained in:
@@ -18,6 +18,10 @@ public:
|
||||
|
||||
static std::string get_serial() { return "cccccc"; }
|
||||
|
||||
static std::map<std::string, std::string> get_init_logs() {
|
||||
return {};
|
||||
}
|
||||
|
||||
static void reboot() {}
|
||||
static void poweroff() {}
|
||||
static void set_brightness(int percent) {}
|
||||
|
||||
@@ -73,6 +73,13 @@ public:
|
||||
std::system(("pactl set-sink-volume @DEFAULT_SINK@ " + std::string(volume_str)).c_str());
|
||||
}
|
||||
|
||||
|
||||
static std::map<std::string, std::string> get_init_logs() {
|
||||
return {
|
||||
{"/BUILD", util::read_file("/BUILD")},
|
||||
};
|
||||
}
|
||||
|
||||
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