add support for TSPDRV vibration
* Needed for the LG V30, G7, V35, V40
* Use TW_HAPTICS_TSPDRV in your BoardConfig.mk to enable it.
Change-Id: I0970ed5c046e851f7e6f562283523c7214c8d2b5
(cherry picked from commit 314cbd5698d1750a31c9cf4284d3ce8dfadce157)
diff --git a/minuitwrp/events.cpp b/minuitwrp/events.cpp
index 955acf3..7e5bc42 100755
--- a/minuitwrp/events.cpp
+++ b/minuitwrp/events.cpp
@@ -128,6 +128,7 @@
}
#ifndef TW_NO_HAPTICS
+#ifndef TW_HAPTICS_TSPDRV
int vibrate(int timeout_ms)
{
if (timeout_ms > 10000) timeout_ms = 1000;
@@ -149,6 +150,7 @@
return 0;
}
#endif
+#endif
/* Returns empty tokens */
static char *vk_strtok_r(char *str, const char *delim, char **save_str)