start refactoring transmitting

This commit is contained in:
2020-11-25 12:55:10 +01:00
parent 03cadcdd58
commit 3b3894b3f0
2 changed files with 17 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ typedef struct {
int32_t period;
int32_t delay;
bool waiting;
bool active;
} t_mbusDevice;
typedef enum {

View File

@@ -582,7 +582,8 @@ static t_mbusDevice devices[] = {
.failures = 0,
.period = PERIOD,
.delay = 0,
.waiting = false
.waiting = false,
.active = false
},
{
.deviceName = "ComputerPower",
@@ -592,7 +593,8 @@ static t_mbusDevice devices[] = {
.failures = 0,
.period = PERIOD,
.delay = 0,
.waiting = false
.waiting = false,
.active = false
},
{
.deviceName = "DryerPower",
@@ -602,7 +604,8 @@ static t_mbusDevice devices[] = {
.failures = 0,
.period = PERIOD,
.delay = 0,
.waiting = false
.waiting = false,
.active = false
},
{
.deviceName = "LaundryPower",
@@ -612,7 +615,8 @@ static t_mbusDevice devices[] = {
.failures = 0,
.period = PERIOD,
.delay = 0,
.waiting = false
.waiting = false,
.active = false
},
{
.deviceName = "DishwasherPower",
@@ -622,7 +626,8 @@ static t_mbusDevice devices[] = {
.failures = 0,
.period = PERIOD,
.delay = 0,
.waiting = false
.waiting = false,
.active = false
},
{
.deviceName = "LightPower",
@@ -632,7 +637,8 @@ static t_mbusDevice devices[] = {
.failures = 0,
.period = PERIOD,
.delay = 0,
.waiting = false
.waiting = false,
.active = false
},
{
.deviceName = "FreezerPower",
@@ -642,7 +648,8 @@ static t_mbusDevice devices[] = {
.failures = 0,
.period = PERIOD,
.delay = 0,
.waiting = false
.waiting = false,
.active = false
},
{
.deviceName = "FridgePower",
@@ -652,7 +659,8 @@ static t_mbusDevice devices[] = {
.failures = 0,
.period = PERIOD,
.delay = 0,
.waiting = false
.waiting = false,
.active = false
}
};