diff options
author | 2019-03-22 11:15:07 +0200 | |
---|---|---|
committer | 2019-03-22 11:31:14 +0200 | |
commit | e2ee55bba2f55624e23dbcaeb3613dd03e60692d (patch) | |
tree | c22bb137b2e4819bcbdbbabbf8af5f2d75f2a8ef | |
parent | 3117096ab99c73f9a51ed46b9447b640d31a652f (diff) | |
download | usurpation-e2ee55bba2f55624e23dbcaeb3613dd03e60692d.tar.gz usurpation-e2ee55bba2f55624e23dbcaeb3613dd03e60692d.tar.bz2 usurpation-e2ee55bba2f55624e23dbcaeb3613dd03e60692d.zip |
device: Cosmetic changes.
Changed 'toggleled' to 'toggle_led' for improved readability.
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
-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; |