rcommand little code sanitization
This commit is contained in:
parent
a7114f431f
commit
7b70009cb1
@ -10,13 +10,6 @@
|
|||||||
// Local logging tag
|
// Local logging tag
|
||||||
static const char TAG[] = "main";
|
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
|
#ifdef HAS_LORA
|
||||||
// helper function to assign LoRa datarates to numeric spreadfactor values
|
// helper function to assign LoRa datarates to numeric spreadfactor values
|
||||||
void switch_lora(uint8_t sf, uint8_t tx) {
|
void switch_lora(uint8_t sf, uint8_t tx) {
|
||||||
|
@ -4,6 +4,13 @@
|
|||||||
#include "senddata.h"
|
#include "senddata.h"
|
||||||
#include "configmanager.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 rcommand(uint8_t cmd, uint8_t arg);
|
||||||
void switch_lora(uint8_t sf, uint8_t tx);
|
void switch_lora(uint8_t sf, uint8_t tx);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user