firmware/lanternfish/daySchedule.cpp
bool DaySchedule::save(){
    size_t offset = dow*BYTES_PER_DAY;
    EEPROM.update(offset, getSize());
    for(unsigned char i = 0; i < NB_PTS_MAX; i++){
        EEPROM.update(offset + 3*i + 1, ptHour[i]);
        EEPROM.update(offset + 3*i + 2, ptMin[i]);
        EEPROM.update(offset + 3*i + 3, ptDC[i]);
    }
    
}
/*
 * Saves the schedule for the current day in the EEPROM of the device
 * In:
 *  /
 * Out:
 *  bool: true if successfully saved
 *        false otherwise
 */
Saves the schedule for the current day in the EEPROM of the device
In:

Out:
bool: true if successfully saved
false otherwise
Saves the schedule for the current day in the EEPROM of the device In : Out : bool : true if successfully saved false otherwise
bool DaySchedule::save(){
    size_t offset = dow*BYTES_PER_DAY;
    EEPROM.update(offset, getSize());
    for(unsigned char i = 0; i < NB_PTS_MAX; i++){
        EEPROM.update(offset + 3*i + 1, ptHour[i]);
        EEPROM.update(offset + 3*i + 2, ptMin[i]);
        EEPROM.update(offset + 3*i + 3, ptDC[i]);
    }
}
bool DaySchedule :: save ( ) { size_t offset = dow * BYTES_PER_DAY ; EEPROM . update ( offset , getSize ( ) ) ; for ( unsigned char i = 0 ; i < NB_PTS_MAX ; i ++ ) { EEPROM . update ( offset + 3 * i + 1 , ptHour [ i ] ) ; EEPROM . update ( offset + 3 * i + 2 , ptMin [ i ] ) ; EEPROM . update ( offset + 3 * i + 3 , ptDC [ i ] ) ; } }
Saves the schedule for the current day in the EEPROM of the device
 In:
  
 Out:
  bool: true if successfully saved
        false otherwise
Saves the schedule for the current day in the EEPROM of the device In : Out : bool : true if successfully saved false otherwise