summaryrefslogtreecommitdiff
path: root/globals.c
blob: 88bf5470a14cfc35dca20a663b2885a107737093 (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);
}