summaryrefslogtreecommitdiff
path: root/globals.c
blob: c0be66234f930701dd47d97f272714a361cd1737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "globals.h"
#include <time.h>


GlobalStruct globals = {
	.Flags.do_check_settings = 1,
	.DefaultFlags.do_check_settings = 1,

	.Registers.last_rise_time_relay_setting = 99,

	.Registers.last_relay_driver_settings[0] = -1,
	.Registers.last_relay_driver_settings[1] = -1,
	.Registers.last_relay_driver_settings[2] = -1

};


long sec_timer (void)
{
	return (long)time(NULL);
}