start refactoring transmitting

This commit is contained in:
Wolfgang Hottgenroth 2020-11-25 12:55:10 +01:00
parent 03cadcdd58
commit 3b3894b3f0
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
2 changed files with 17 additions and 8 deletions
cube/User

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

@ -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
}
};