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:
parent
b4dbcb7fff
commit
1694ddc112
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue