mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-24 00:35:14 +03:00
Haptic strength will be selectable with a slider, with a default
position at center
This commit is contained in:
parent
cd42a7749e
commit
8f10bed8c1
12 changed files with 97 additions and 94 deletions
|
@ -928,9 +928,9 @@ GeneralSettings::GeneralSettings()
|
|||
byte8=(int8_t)t_HapticSet.mid(0,2).toUInt(&ok,16);
|
||||
if (ok)
|
||||
hapticMode=(BeeperMode)byte8;
|
||||
byte8u=(uint8_t)t_HapticSet.mid(2,2).toUInt(&ok,16);
|
||||
byte8=(int8_t)t_HapticSet.mid(2,2).toInt(&ok,16);
|
||||
if (ok)
|
||||
hapticStrength=byte8u;
|
||||
hapticStrength=byte8;
|
||||
byte8=(int8_t)t_HapticSet.mid(4,2).toInt(&ok,16);
|
||||
if (ok)
|
||||
hapticLength=byte8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue