Commit fd880504f3178e2f31eeced535306ce4eee7287a
authorMichel Pollet <buserror@gmail.com>
Fri, 28 Feb 2014 01:06:17 +0000 (01:06 +0000)
committerMichel Pollet <buserror@gmail.com>
Fri, 28 Feb 2014 01:06:17 +0000 (01:06 +0000)
Not sure how this got commited, it was not compiling.

examples/board_simduino/simduino.c

index 3e4b3446960052f5f401d2ed8912cb302eecced8..14a0045501eebb129e959dd826ea23c0b1248e88 100644 (file)
@@ -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);