sm8150-common: vibrator: Store VMAX and GAIN as strings

Change-Id: I1d3a6e2318fbbea6d33e8d16797ed7d712c9ea70
This commit is contained in:
LuK1337 2019-08-07 17:22:37 +02:00
parent 76d2e9ba24
commit 97761fb639
2 changed files with 4 additions and 4 deletions

View File

@ -41,8 +41,8 @@ static constexpr char STATE_PATH[] = "/sys/class/leds/vibrator/state";
static constexpr char VMAX_PATH[] = "/sys/class/leds/vibrator/vmax";
// General constants
static constexpr uint8_t GAIN = 128;
static constexpr uint8_t VMAX = 9;
static constexpr char GAIN[] = "0x80";
static constexpr char VMAX[] = "0x09";
// Effects
static const AwEffect WAVEFORM_CLICK_EFFECT {

View File

@ -25,8 +25,8 @@ namespace {
typedef struct {
std::optional<std::vector<std::string>> sequences;
std::optional<std::vector<std::string>> loops;
std::optional<uint8_t> vmax;
std::optional<uint8_t> gain;
std::optional<std::string> vmax;
std::optional<std::string> gain;
int timeMS{};
} AwEffect;