mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-23 20:52:06 +08:00
5fc14c8db3
* c2 power saving
* clean that up
* that works
* add to hw
* set power
* release files
* add that
* include hw base
* pc joins the party
* util
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 49748d5dc1
23 lines
510 B
C++
23 lines
510 B
C++
#pragma once
|
|
|
|
#include <cstdlib>
|
|
#include <fstream>
|
|
|
|
|
|
// no-op base hw class
|
|
class HardwareNone {
|
|
public:
|
|
static constexpr float MAX_VOLUME = 0;
|
|
static constexpr float MIN_VOLUME = 0;
|
|
|
|
static std::string get_os_version() { return "openpilot for PC"; };
|
|
|
|
static void reboot() {};
|
|
static void poweroff() {};
|
|
static void set_brightness(int percent) {};
|
|
static void set_display_power(bool on) {};
|
|
|
|
static bool get_ssh_enabled() { return false; };
|
|
static void set_ssh_enabled(bool enabled) {};
|
|
};
|