mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 17:03:56 +08:00
* cleanup include path * continue * format includes * fix testraw.cc * remove include path from SConstruct * regroup * rebase master * almost done * apply review * rename FileReader.xx to filereader.xx * rename Unlogger.x->unlogger.x * rename FrameReader.xx -> framereader.xx * apply reviews * ui.h * continue * fix framebuffer.cc build error:mv util.h up * full path to msm_media_info * fix qcom2 camerad Co-authored-by: Comma Device <device@comma.ai>
26 lines
601 B
C++
26 lines
601 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 ""; }
|
|
|
|
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) {}
|
|
|
|
static bool PC() { return false; }
|
|
static bool EON() { return false; }
|
|
static bool TICI() { return false; }
|
|
};
|