Skip to content

Commit 0432395

Browse files
committed
fixed light source
1 parent 9778143 commit 0432395

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PPUC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void PPUC::SendTriggerConfigBlock(const YAML::Node& items, uint32_t type,
115115
if (strcmp(c_source.c_str(), "S") == 0) {
116116
source = EVENT_SOURCE_SOLENOID;
117117
} else if (strcmp(c_source.c_str(), "L") == 0) {
118-
type = EVENT_SOURCE_LIGHT;
118+
source = EVENT_SOURCE_LIGHT;
119119
}
120120
m_pRS485Comm->SendConfigEvent(
121121
new ConfigEvent(board, (uint8_t)CONFIG_TOPIC_TRIGGER, index++,
@@ -125,7 +125,7 @@ void PPUC::SendTriggerConfigBlock(const YAML::Node& items, uint32_t type,
125125
(uint8_t)CONFIG_TOPIC_NUMBER, n_item["number"].as<uint32_t>()));
126126
m_pRS485Comm->SendConfigEvent(new ConfigEvent(
127127
board, (uint8_t)CONFIG_TOPIC_LAMPS, index++,
128-
(uint8_t)CONFIG_TOPIC_VALUE, n_item["ledNumber"].as<uint32_t>()));
128+
(uint8_t)CONFIG_TOPIC_VALUE, n_item["value"].as<uint32_t>()));
129129
}
130130
}
131131
}

0 commit comments

Comments
 (0)