Rev 1556 | Rev 1559 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1556 | Rev 1558 | ||
|---|---|---|---|
| Line 206... | Line 206... | ||
| 206 | //break prematurely, to prevent data from being saved in EEPROM |
206 | //break prematurely, to prevent data from being saved in EEPROM |
| 207 | break; |
207 | break; |
| 208 | } |
208 | } |
| 209 | 209 | ||
| 210 | // update EEPROM data |
210 | // update EEPROM data |
| - | 211 | #ifdef sns_Serial_USEEEPROM |
|
| 211 | #if ((__AVR_LIBC_MAJOR__ == 1 && __AVR_LIBC_MINOR__ == 6 && __AVR_LIBC_REVISION__ >=2)||(__AVR_LIBC_MAJOR__ == 1 && __AVR_LIBC_MINOR__ > 6)||__AVR_LIBC_MAJOR__ > 1) |
212 | #if ((__AVR_LIBC_MAJOR__ == 1 && __AVR_LIBC_MINOR__ == 6 && __AVR_LIBC_REVISION__ >=2)||(__AVR_LIBC_MAJOR__ == 1 && __AVR_LIBC_MINOR__ > 6)||__AVR_LIBC_MAJOR__ > 1) |
| 212 | eeprom_write_dword_crc(EEDATA32.baudRate, 9600, WITHOUT_CRC); |
213 | eeprom_write_dword_crc(EEDATA32.baudRate, 9600, WITHOUT_CRC); |
| 213 | #else |
214 | #else |
| 214 | #warning This version of AVR-libc does not have support for eeprom read dword |
215 | #warning This version of AVR-libc does not have support for eeprom read dword |
| 215 | #endif |
216 | #endif |
| 216 | eeprom_write_word_crc(EEDATA16.format, CAN_MODULE_ENUM_SERIAL_SERIALCONFIG_PHYSICALFORMAT_LOOPBACK, WITHOUT_CRC); |
217 | eeprom_write_word_crc(EEDATA16.format, CAN_MODULE_ENUM_SERIAL_SERIALCONFIG_PHYSICALFORMAT_LOOPBACK, WITHOUT_CRC); |
| 217 | EEDATA_UPDATE_CRC; |
218 | EEDATA_UPDATE_CRC; |
| - | 219 | #endif |
|
| 218 | 220 | ||
| 219 | break; |
221 | break; |
| 220 | } |
222 | } |
| 221 | } |
223 | } |
| 222 | } |
224 | } |