Skip to content

Commit cddd052

Browse files
Bug fix: spi instanse name initialization
1 parent 900471d commit cddd052

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

simavr/sim/avr_spi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ void avr_spi_init(avr_t * avr, avr_spi_t * port);
108108

109109
#define AVR_SPI_DECLARE(_prr, _prspi, _ss_pin_port, _p_sck, _p_miso, _p_mosi, _p_ss) \
110110
.spi = { \
111+
.name = '0', \
111112
.disabled = AVR_IO_REGBIT(_prr, _prspi), \
112113
\
113114
.r_spdr = SPDR, \

0 commit comments

Comments
 (0)