diff options
-rw-r--r-- | firmware/target/hosted/agptek/button-agptek.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/agptek/button-agptek.c b/firmware/target/hosted/agptek/button-agptek.c index a8b5debee5..2d2deda6f6 100644 --- a/firmware/target/hosted/agptek/button-agptek.c +++ b/firmware/target/hosted/agptek/button-agptek.c | |||
@@ -132,7 +132,7 @@ int button_read_device(void) | |||
132 | bool headphones_inserted(void) | 132 | bool headphones_inserted(void) |
133 | { | 133 | { |
134 | int status = 0; | 134 | int status = 0; |
135 | const char * const sysfs_hp_switch = "/sys/devices/switch/headset/status"; | 135 | const char * const sysfs_hp_switch = "/sys/class/switch/headset/state"; |
136 | sysfs_get_int(sysfs_hp_switch, &status); | 136 | sysfs_get_int(sysfs_hp_switch, &status); |
137 | 137 | ||
138 | return status ? true : false; | 138 | return status ? true : false; |