diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | src/device/main.ino | 7 |
2 files changed, 5 insertions, 3 deletions
@@ -1,3 +1,4 @@ Usurpation was brought to you thanks to the work of: Gediminas Jakutis +Ramūnas Mažeikis diff --git a/src/device/main.ino b/src/device/main.ino index b028d17..8794ef5 100644 --- a/src/device/main.ino +++ b/src/device/main.ino @@ -2,6 +2,7 @@ * Usurpation – wearable device main logic * * Copyright (C) 2019 Gediminas Jakutis + * Copyright (C) 2019 Ramūnas Mažeikis * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -22,7 +23,7 @@ static const unsigned int internal_led = 2; -unsigned int toggleled(void); +unsigned int toggle_led(void); void setup(void) { @@ -40,14 +41,14 @@ void loop(void) static unsigned int delta = 100; /* progresivelly grow the time delta while changing state*/ - delta += delta >> (6 + toggleled()); + delta += delta >> (6 + toggle_led()); /* sleep */ delay(delta); } /* toggle the bult-in led and return current state */ -unsigned int toggleled(void) +unsigned int toggle_led(void) { static unsigned int state = 0; |