pa: interfaces: Fix event node based DT2W screen off gesture

* Write the complete input_event to the event node.

Signed-off-by: Rituj Beniwal <ritujbeniwal@gmail.com>
Change-Id: I19f31cff8301c792c135fd0e603ce3c019f6c20c
This commit is contained in:
Rituj Beniwal 2021-04-02 17:20:03 +05:30 committed by Vishal Cj
parent b4dbcb7fff
commit 1694ddc112
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ void PowerFeature::sysFsWrite(const char *file_node, const input_event *ev) {
return;
}
rc = write(fd, ev, 1);
rc = write(fd, ev, sizeof(*ev));
if (rc < 0) {
ALOGE("Failed to write \"%d\" to %s", ev->value, file_node);
}