code sanitization

This commit is contained in:
Klaus K Wilting 2018-10-03 23:07:22 +02:00
parent 219f2347da
commit 6e47a60f32
8 changed files with 6 additions and 9 deletions

View File

@ -1,7 +1,6 @@
#ifdef HAS_BUTTON #ifdef HAS_BUTTON
#include "globals.h" #include "globals.h"
#include "senddata.h"
// Local logging tag // Local logging tag
static const char TAG[] = "main"; static const char TAG[] = "main";

View File

@ -1,6 +1,8 @@
#ifndef _BUTTON_H #ifndef _BUTTON_H
#define _BUTTON_H #define _BUTTON_H
#include "senddata.h"
void IRAM_ATTR ButtonIRQ(void); void IRAM_ATTR ButtonIRQ(void);
void readButton(void); void readButton(void);

View File

@ -2,7 +2,7 @@
/* Interval can be set in paxcounter.conf (HOMECYCLE) */ /* Interval can be set in paxcounter.conf (HOMECYCLE) */
// Basic config // Basic config
#include "globals.h" #include "cyclic.h"
// Local logging tag // Local logging tag
static const char TAG[] = "main"; static const char TAG[] = "main";

View File

@ -1,9 +1,8 @@
#ifndef _CYCLIC_H #ifndef _CYCLIC_H
#define _CYCLIC_H #define _CYCLIC_H
#include "globals.h"
#include "senddata.h" #include "senddata.h"
#include "ota.h"
#include "led.h"
void doHousekeeping(void); void doHousekeeping(void);
void IRAM_ATTR homeCycleIRQ(void); void IRAM_ATTR homeCycleIRQ(void);

View File

@ -61,7 +61,6 @@ extern TaskHandle_t stateMachineTask, wifiSwitchTask;
#if (HAS_LED != NOT_A_PIN) || defined(HAS_RGB_LED) #if (HAS_LED != NOT_A_PIN) || defined(HAS_RGB_LED)
#include "led.h" #include "led.h"
extern TaskHandle_t ledLoopTask;
#endif #endif
#include "payload.h" #include "payload.h"

View File

@ -31,6 +31,8 @@ struct RGBColor {
enum led_states { LED_OFF, LED_ON }; enum led_states { LED_OFF, LED_ON };
extern TaskHandle_t ledLoopTask;
// Exported Functions // Exported Functions
void rgb_set_color(uint16_t hue); void rgb_set_color(uint16_t hue);
void blink_LED(uint16_t set_color, uint16_t set_blinkduration); void blink_LED(uint16_t set_color, uint16_t set_blinkduration);

View File

@ -6,7 +6,6 @@
#include <esp32-hal-timer.h> // needed for timers #include <esp32-hal-timer.h> // needed for timers
#include "globals.h" #include "globals.h"
#include "led.h"
#include "wifiscan.h" #include "wifiscan.h"
#include "configmanager.h" #include "configmanager.h"
#include "cyclic.h" #include "cyclic.h"

View File

@ -2,9 +2,6 @@
#define _STATEMACHINE_H #define _STATEMACHINE_H
#include "globals.h" #include "globals.h"
#include "led.h"
#include "wifiscan.h"
#include "senddata.h"
#include "cyclic.h" #include "cyclic.h"
void stateMachine(void *pvParameters); void stateMachine(void *pvParameters);