rcommand little code sanitization

This commit is contained in:
Klaus K Wilting committed 2018-07-29 16:16:50 +02:00
1 parent a7114f431f
commit 7b70009cb1
2 files changed
+7 -7

No files matched your search

-7
View File
@@ -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) {
+7
View File
@@ -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);