mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-12 19:33:43 +08:00
b156613b2f
old-commit-hash: d72855ecb8749ca994af4f1b5cf1b575c068e88e
22 lines
465 B
C++
22 lines
465 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 bool get_ssh_enabled() { return false; };
|
|
static void set_ssh_enabled(bool enabled) {};
|
|
};
|