qmk_firmware/drivers/haptic
Purdea Andrei c904520f72
Haptic and solenoid cleanup (#9700)
* solenoid: remove two functions that do nothing.

These functions modify the argument, and so they do nothing.

Note: versions of these functions exist in mtdjr's user folder,
however to core solenoid support and mtdjr user-specific solenoid
support are exclusive (only one can be used at a time).

So removing these confusing functions does no harm.

* solenoid: bugfix: don't allow dwell time to go 1ms below minimum time.

The previous code allowed dwell time to go 1ms below the configured minimum.
This change corrects it.

* solenoid: bugfix: when incrementing above maximum dwell time, jump back to minimum, not to 1

The previous code used to jump back to 1, which might be way under the configured minimum setting.

* solenoid: bugfix: on startup actually use the eeprom-stored dwell-time

This is because the dwell time is stored in two variables.

* solenoid: bugfix: on haptic_reset, actually use the newly set default dwell time.

This is needed because dwell time is configured in two variables.

* solenoid: on HPT_RST set buzz to a default value

* solenoid: buzz: reworked to make more configurable. Previous behaviour maintained.

* solenoid: documentation: clarify meaning of dwell time

* solenoid: add feature SOLENOID_DWELL_STEP_SIZE

* solenoid: documentation: added note about the precision of the solenoid time settings

* haptic: Correctly call haptic_reset when eeprom is corrupt.

* haptic: improve what happens if haptic is enabled without erasing eeprom

* haptic: improve what happens if solenoid is enabled without erasing eeprom

* drivers/haptic: fix compilation issue, when haptic is enabled, but solenoid isn't
2020-10-30 13:15:50 -07:00
..
DRV2605L.c Completely remove i2c_transmit_receive function (#7686) 2019-12-22 13:50:08 +00:00
DRV2605L.h DRV2605L Continuous Haptic Feedback Support (#6461) 2019-09-19 09:42:33 -07:00
haptic.c Haptic and solenoid cleanup (#9700) 2020-10-30 13:15:50 -07:00
haptic.h Run clang-format manually to fix recently changed files 2019-11-17 08:25:58 -08:00
solenoid.c Haptic and solenoid cleanup (#9700) 2020-10-30 13:15:50 -07:00
solenoid.h Haptic and solenoid cleanup (#9700) 2020-10-30 13:15:50 -07:00