aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/src/Core/common.c
diff options
context:
space:
mode:
authorMaximilien Cuony <maximilien@theglu.org>2016-06-04 00:24:30 +0200
committerMaximilien Cuony <maximilien@theglu.org>2016-06-04 00:24:30 +0200
commitf4a93ecce5813c9ddf9e5dc4a416777681dc04f9 (patch)
tree20f9a258417da24fcabb62819f76bf81e60f0834 /src/common/src/Core/common.c
parent53c2afbf719d91f660e815c160e73066ef1ec9e0 (diff)
downloadglutte-o-matic-f4a93ecce5813c9ddf9e5dc4a416777681dc04f9.tar.gz
glutte-o-matic-f4a93ecce5813c9ddf9e5dc4a416777681dc04f9.tar.bz2
glutte-o-matic-f4a93ecce5813c9ddf9e5dc4a416777681dc04f9.zip
Simulator: GPS, Audio, CW
Diffstat (limited to 'src/common/src/Core/common.c')
-rw-r--r--src/common/src/Core/common.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/common/src/Core/common.c b/src/common/src/Core/common.c
index c31bbf8..476d1b4 100644
--- a/src/common/src/Core/common.c
+++ b/src/common/src/Core/common.c
@@ -38,8 +38,7 @@ static uint16_t lfsr;
static void common_increase_timestamp(TimerHandle_t t);
-int find_last_sunday(const struct tm* time)
-{
+int find_last_sunday(const struct tm* time) {
struct tm t = *time;
// the last sunday can never be before the 20th
@@ -68,8 +67,7 @@ int find_last_sunday(const struct tm* time)
* 1 if true
* -1 in case of error
*/
-static int is_dst(const struct tm *time)
-{
+static int is_dst(const struct tm *time) {
/* DST from 01:00 UTC on last Sunday in March
* to 01:00 UTC on last Sunday in October
*/
@@ -114,8 +112,7 @@ static int is_dst(const struct tm *time)
}
}
-int local_time(struct tm *time)
-{
+int local_time(struct tm *time) {
const int local_time_offset=1; // hours
int valid = gps_utctime(time);