Skip to content

Commit eebf436

Browse files
authored
Clean up redundant paranthesis.
1 parent a38a629 commit eebf436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/Tone.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Tone {
2727
}
2828

2929
void start(void) {
30-
if ((frequency != 0) && (channel != -1)) {
30+
if (frequency != 0 && channel != -1) {
3131
tone_timer.start();
3232
}
3333
if (duration != 0) {
@@ -44,7 +44,7 @@ class Tone {
4444
}
4545

4646
void stop(void) {
47-
if ((frequency != 0) && (channel != -1)) {
47+
if (frequency != 0 && channel != -1) {
4848
tone_timer.stop();
4949
}
5050
digitalWrite(pin, LOW);

0 commit comments

Comments
 (0)