mirror of
https://github.com/pmarchini/Esp32Dimmer.git
synced 2025-10-30 19:04:03 +03:00
minor refactoring
This commit is contained in:
@@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
#include "esp32idfDimmer.h"
|
#include "esp32idfDimmer.h"
|
||||||
|
|
||||||
|
static const char *TAG = "Esp32idfDimmer";
|
||||||
|
|
||||||
int pulseWidth = 2;
|
int pulseWidth = 2;
|
||||||
volatile int current_dim = 0;
|
volatile int current_dim = 0;
|
||||||
int all_dim = 3;
|
int all_dim = 3;
|
||||||
@@ -26,8 +28,6 @@ static int toggleReload = 25;
|
|||||||
volatile bool _initDone = false;
|
volatile bool _initDone = false;
|
||||||
volatile int _steps = 0;
|
volatile int _steps = 0;
|
||||||
|
|
||||||
#define STEPS _steps
|
|
||||||
|
|
||||||
|
|
||||||
static dimmertyp *dimmer[ALL_DIMMERS];
|
static dimmertyp *dimmer[ALL_DIMMERS];
|
||||||
volatile bool firstSetup = false;
|
volatile bool firstSetup = false;
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
|
|
||||||
static const char *TAG = "Esp32idfDimmer";
|
|
||||||
|
|
||||||
#define ALL_DIMMERS 50
|
#define ALL_DIMMERS 50
|
||||||
|
|
||||||
/*ISR debug defines*/
|
/*ISR debug defines*/
|
||||||
|
|||||||
Reference in New Issue
Block a user