summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Ramūnas Mažeikis <ramunasnezinomas@gmail.com> 2019-03-22 11:15:07 +0200
committerGravatar Ramūnas Mažeikis <ramunasnezinomas@gmail.com> 2019-03-22 11:31:14 +0200
commite2ee55bba2f55624e23dbcaeb3613dd03e60692d (patch)
treec22bb137b2e4819bcbdbbabbf8af5f2d75f2a8ef /src
parent3117096ab99c73f9a51ed46b9447b640d31a652f (diff)
downloadusurpation-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>
Diffstat (limited to 'src')
-rw-r--r--src/device/main.ino7
1 files changed, 4 insertions, 3 deletions
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;