Skip to content

Commit 951cddc

Browse files
committed
AI feedback ;)
1 parent 1966604 commit 951cddc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android-src/KV4PHT/app/src/main/java/com/vagell/kv4pht/radio/RadioAudioService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ public void setMode(int mode) {
395395
serialPort.setRTS(false);
396396
Thread.sleep(50);
397397
serialPort.setDTR(false);
398-
} catch (IOException | InterruptedException e) {
398+
} catch (InterruptedException e) {
399+
Thread.currentThread().interrupt();
400+
} catch (IOException ignored) {
399401
}
400402
break;
401403
default:

0 commit comments

Comments
 (0)