Esempio n. 1
0
/*
 * Write values from memory into fields
 */
static void write_values_to_fields() {
  write_time_value_to_field(F_FROM_HOUR);
  write_time_value_to_field(F_FROM_MINUTE);
  write_time_value_to_field(F_TO_HOUR);
  write_time_value_to_field(F_TO_MINUTE);
  text_layer_set_text(fields[F_SMART_ALARM], values[F_SMART_ALARM] == 1 ? ON : OFF);
  text_layer_set_text(fields[F_DONE], values[F_DONE] == 1 ? DONE : BAD);
}
Esempio n. 2
0
/*
 * Write values from memory into fields
 */
static void write_values_to_fields() {
  write_time_value_to_field(F_FROM_HOUR);
  write_time_value_to_field(F_FROM_MINUTE);
  write_time_value_to_field(F_TO_HOUR);
  write_time_value_to_field(F_TO_MINUTE);
  if (!is24hr) {
    write_ampm_value_to_field(F_FROM_AMPM);
    write_ampm_value_to_field(F_TO_AMPM);
  }
}