Subversion Repositories HomeAutomation

Rev

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

Rev 1910 Rev 1976
Line 221... Line 221...
221
        }
221
        }
222
#endif      
222
#endif      
223
    }
223
    }
224
}
224
}
225
 
225
 
226
#ifdef act_dimmer230_USEEEPROM
226
#if act_dimmer230_USEEEPROM==1
227
struct eeprom_act_dimmer230 EEMEM eeprom_act_dimmer230 =
227
struct eeprom_act_dimmer230 EEMEM eeprom_act_dimmer230 =
228
{
228
{
229
    {
229
    {
230
        /* Define initialization values on the EEPROM variables here,
230
        /* Define initialization values on the EEPROM variables here,
231
        this will generate a *.eep file that can be used to store this values to the node,
231
        this will generate a *.eep file that can be used to store this values to the node,
Line 239... Line 239...
239
 
239
 
240
/*  Init function of dimmer-module, will init hardware such as timer and gpio and load
240
/*  Init function of dimmer-module, will init hardware such as timer and gpio and load
241
    saved eeprom value */
241
    saved eeprom value */
242
void act_dimmer230_Init(void)
242
void act_dimmer230_Init(void)
243
{
243
{
244
#ifdef act_dimmer230_USEEEPROM
244
#if act_dimmer230_USEEEPROM==1
245
    if (EEDATA_OK)
245
    if (EEDATA_OK)
246
    {
246
    {
247
      /* Use stored data to set initial values for the module */
247
      /* Use stored data to set initial values for the module */
248
      dimmerValue = eeprom_read_byte(EEDATA.eeDimmerValue);
248
      dimmerValue = eeprom_read_byte(EEDATA.eeDimmerValue);
249
    } else
249
    } else