Subversion Repositories HomeAutomation

Rev

Rev 1978 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1978 Rev 2178
Line 174... Line 174...
174
}
174
}
175
 
175
 
176
 
176
 
177
void sns_Serial_Init()
177
void sns_Serial_Init()
178
{
178
{
-
 
179
    /* Init filter in case eeprom not correct */
-
 
180
    filter.prefixLength = 0;
-
 
181
    filter.suffixLength = 0;
-
 
182
    filter.prefixPattern[0] = 0;
-
 
183
    filter.prefixPattern[1] = 0;
-
 
184
    filter.prefixPattern[2] = 0;
-
 
185
    filter.suffixPattern[0] = 0;
-
 
186
    filter.suffixPattern[1] = 0;
-
 
187
    filter.suffixPattern[2] = 0;
179
#if sns_Serial_USEEEPROM==1
188
#if sns_Serial_USEEEPROM==1
180
    if (EEDATA_OK) {
189
    if (EEDATA_OK) {
181
    //if (0) {
190
    //if (0) {
182
#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)
191
#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)
183
        baudRate = eeprom_read_dword(EEDATA32.baudRate);
192
        baudRate = eeprom_read_dword(EEDATA32.baudRate);