From: Michel Pollet Date: Fri, 28 Feb 2014 01:06:17 +0000 (+0000) Subject: simduino: Small fix X-Git-Tag: v1.2~30 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=fd880504f3178e2f31eeced535306ce4eee7287a;p=sx%2Fsimavr.git simduino: Small fix Not sure how this got commited, it was not compiling. --- diff --git a/examples/board_simduino/simduino.c b/examples/board_simduino/simduino.c index 3e4b344..14a0045 100644 --- a/examples/board_simduino/simduino.c +++ b/examples/board_simduino/simduino.c @@ -156,7 +156,7 @@ void avr_special_init( avr_t * avr, void * data) { struct avr_flash *flash_data = (struct avr_flash *)data; // open the file - avr_flash_fd = open(flash_data->avr_flash_path, O_RDWR|O_CREAT, 0644); + flash_data->avr_flash_fd = open(flash_data->avr_flash_path, O_RDWR|O_CREAT, 0644); if (flash_data->avr_flash_fd < 0) { perror(flash_data->avr_flash_path); exit(1);