Skip to content

Commit 0f7fa4d

Browse files
committed
examples: nano168: Fix wrong interrupt annotation
Previous versions of `avr-device` allowed accidentally mis-specifying the MCU in the interrupt definition. Now that this is caught, fix one such mistake here.
1 parent 6ae715e commit 0f7fa4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/nano168/src/bin/nano168-millis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn millis_init(tc0: arduino_hal::pac::TC0) {
5353
});
5454
}
5555

56-
#[avr_device::interrupt(atmega328p)]
56+
#[avr_device::interrupt(atmega168)]
5757
fn TIMER0_COMPA() {
5858
avr_device::interrupt::free(|cs| {
5959
let counter_cell = MILLIS_COUNTER.borrow(cs);

0 commit comments

Comments
 (0)