From 7b70009cb1bbd67940efee2749409bcd6c7ed1dc Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 29 Jul 2018 16:16:50 +0200 Subject: [PATCH] rcommand little code sanitization --- src/rcommand.cpp | 7 ------- src/rcommand.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/rcommand.cpp b/src/rcommand.cpp index cecc3a66..0b9e61cd 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -10,13 +10,6 @@ // Local logging tag static const char TAG[] = "main"; -// table of remote commands and assigned functions -typedef struct { - const uint8_t nam; - void (*func)(uint8_t); - const bool store; -} cmd_t; - #ifdef HAS_LORA // helper function to assign LoRa datarates to numeric spreadfactor values void switch_lora(uint8_t sf, uint8_t tx) { diff --git a/src/rcommand.h b/src/rcommand.h index 1121db7a..09f38d1b 100644 --- a/src/rcommand.h +++ b/src/rcommand.h @@ -4,6 +4,13 @@ #include "senddata.h" #include "configmanager.h" +// table of remote commands and assigned functions +typedef struct { + const uint8_t nam; + void (*func)(uint8_t); + const bool store; +} cmd_t; + void rcommand(uint8_t cmd, uint8_t arg); void switch_lora(uint8_t sf, uint8_t tx);