Merge pull request #288 from AndyCGYan/reverse-slider

Reverse slider
This commit is contained in:
Pierre-Hugues HUSSON 2021-12-09 17:41:42 +01:00 committed by GitHub
commit f96d4cb317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,11 +44,11 @@ int main() {
}
printf("State %d\n", read_tristate());
if(state == 1) {
system("service call audio 32 i32 2 s16 android");
system("service call audio 32 i32 0 s16 android");
} else if(state == 2) {
system("service call audio 32 i32 1 s16 android");
} else if(state == 3) {
system("service call audio 32 i32 0 s16 android");
system("service call audio 32 i32 2 s16 android");
}
}
}