Skip to content

Commit 6f5c896

Browse files
committed
Use macros
1 parent 5aa6fde commit 6f5c896

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/examples/sandbox/sandbox.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ ISR(TCA0_OVF_vect) {
7979
event_flags |= STOP_PUBLISHING_SENSOR_DATA_FLAG;
8080
}
8181

82-
TCA0.SINGLE.INTFLAGS |= (1 << 0);
82+
TCA0.SINGLE.INTFLAGS = TCA_SINGLE_OVF_bm;
8383
}
8484

8585
ISR(PORTD_PORT_vect) {
86-
if (PORTD.INTFLAGS & (1 << 2)) {
86+
if (PORTD.INTFLAGS & PIN2_bm) {
8787

8888
event_flags |= SEND_HEARTBEAT_FLAG;
89-
PORTD.INTFLAGS |= (1 << 2);
89+
PORTD.INTFLAGS = PIN2_bm;
9090
}
9191
}
9292

0 commit comments

Comments
 (0)