Skip to content

Commit e4d6d53

Browse files
committed
fix: not waiting until char devs are present to fix their permissions
annoying flipped conditional statement
1 parent d890f57 commit e4d6d53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/me/arianb/usb_hid_client/hid_utils/CharacterDeviceManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class CharacterDeviceManager private constructor(private val application: Applic
7373
try {
7474
withTimeout(3000) {
7575
// wait until the device file exists before trying to fix its permissions
76-
while (devicePath.exists()) {
76+
while (!devicePath.exists()) {
7777
Timber.d("$devicePath doesn't exist yet, sleeping for a bit before trying again...")
7878
delay(200)
7979
}

0 commit comments

Comments
 (0)