summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2014-12-10 16:40:19 +0100
committerMichael Buesch <m@bues.ch>2014-12-10 16:40:19 +0100
commitd0859040ac3fd8fba0c6546002df387206f58897 (patch)
treeb0caffa17946f2c58b14c32455e54c55a2eb35da
parente4f51c11ee86cf3c33af8843d03bec390fe20a12 (diff)
downloadmoistcontrol-d0859040ac3fd8fba0c6546002df387206f58897.zip
moistcontrol-d0859040ac3fd8fba0c6546002df387206f58897.tar.xz
Remove unused variables
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--firmware/controller.c2
-rw-r--r--firmware/main.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/firmware/controller.c b/firmware/controller.c
index 65debe9..42aba13 100644
--- a/firmware/controller.c
+++ b/firmware/controller.c
@@ -201,8 +201,6 @@ static void pot_remanent_state_commit_eeprom(struct flowerpot *pot)
static void pot_info(struct flowerpot *pot,
uint8_t log_class, uint8_t log_code, uint8_t log_data)
{
- struct log_item log;
-
if (!(pot_config(pot)->flags & POT_FLG_LOG)) {
/* Logging is disabled. Do not emit the message. */
return;
diff --git a/firmware/main.c b/firmware/main.c
index 44f1fbd..1eb8328 100644
--- a/firmware/main.c
+++ b/firmware/main.c
@@ -364,7 +364,6 @@ static void handle_rtc(jiffies_t now)
static enum onoff_state handle_onoffswitch(void)
{
enum onoff_state hw_switch;
- struct log_item log;
hw_switch = onoffswitch_get_state();
bues.ch cgit interface