From 34191743a11e5039c6d465eb89c708f890f4050c Mon Sep 17 00:00:00 2001
From: Selene ToyKeeper
Date: Sat, 19 Aug 2017 12:11:04 -0600
Subject: Added missing GPL header, fixed typo, fixed missing return.
---
RoundTable/momentary.c | 3 ++-
RoundTable/round-table.c | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/RoundTable/momentary.c b/RoundTable/momentary.c
index a40363a..fcf0780 100644
--- a/RoundTable/momentary.c
+++ b/RoundTable/momentary.c
@@ -1,7 +1,7 @@
/*
* Momentary: Very simple example UI for RoundTable.
* Is intended to be the simplest possible RT e-switch UI.
- * The light is in while the button is held; off otherwise.
+ * The light is on while the button is held; off otherwise.
*
* Copyright (C) 2017 Selene ToyKeeper
*
@@ -59,6 +59,7 @@ uint8_t momentary_state(EventPtr event, uint16_t arg) {
else if (event == EV_debug) {
//PWM1_LVL = arg&0xff;
DEBUG_FLASH;
+ return 0;
}
// event not handled
diff --git a/RoundTable/round-table.c b/RoundTable/round-table.c
index 4d2d14e..b18228d 100644
--- a/RoundTable/round-table.c
+++ b/RoundTable/round-table.c
@@ -1,3 +1,26 @@
+/*
+ * RoundTable: Generic foundation code for e-switch flashlights.
+ * Other possible names:
+ * - Mostly Harmless
+ * - FSM / SpaghettiMonster
+ * - ...
+ *
+ * Copyright (C) 2017 Selene ToyKeeper
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#include "tk-attiny.h"
#include
--
cgit v1.2.3