From ac3ec4df45a9d0a44cfd5a4b7e0221ba5bc96b2c Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Fri, 21 Jun 2019 19:05:24 +0800 Subject: [PATCH] tri-state-key: Fix vibrate position for op8p Change-Id: Id3dd97e0284d61ee093e6fd3cf0baaa20479dc14 --- tri-state-key/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tri-state-key/main.cpp b/tri-state-key/main.cpp index 856b1de..a0ad12d 100644 --- a/tri-state-key/main.cpp +++ b/tri-state-key/main.cpp @@ -80,7 +80,7 @@ int main() { } bool none = uevent.state.find("USB=0") != std::string::npos; - bool vibration = uevent.state.find("USB_HOST=0") != std::string::npos; + bool vibration = uevent.state.find("HOST=0") != std::string::npos; bool silent = uevent.state.find("null)=0") != std::string::npos; int keyCode;