Skip to content

Commit

Permalink
#542 Fix comment in avr_ioport.h
Browse files Browse the repository at this point in the history
In comment starting at line 58 of avr_ioport.h there was one missing parameter 'avr' in the avr_ioctl() call on line 63
  • Loading branch information
GeorgKorger authored Nov 22, 2024
1 parent 8d8e833 commit 5867b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simavr/sim/avr_ioport.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ typedef struct avr_ioport_getirq_t {
*
* for (int i = 'A'; i <= 'F'; i++) {
* avr_ioport_state_t state;
* if (avr_ioctl(AVR_IOCTL_IOPORT_GETSTATE(i), &state) == 0)
* if (avr_ioctl(avr, AVR_IOCTL_IOPORT_GETSTATE(i), &state) == 0)
* printf("PORT%c %02x DDR %02x PIN %02x\n",
* state.name, state.port, state.ddr, state.pin);
* }
Expand Down

0 comments on commit 5867b94

Please sign in to comment.