Skip to content

Commit fbaa128

Browse files
committed
Actually initialize the endpoints
1 parent dfd8f62 commit fbaa128

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

examples/valve/controller/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ async def dispense(self, recipe: str):
128128
return
129129

130130
ingredients = self.recipes[recipe]
131-
self._dispense_ingredients(ingredients)
131+
await self._dispense_ingredients(ingredients)
132132

133133
async def _dispense_ingredients(self, ingredients: dict[Bottle, Oz]):
134134
for bottle, amount in ingredients.items():

examples/valve/silabs/src/AppTask.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,19 @@ void AppTask::AppTaskMain(void * pvParameter)
213213
sAppTask.StartStatusLEDTimer();
214214
#endif
215215

216+
ep1.Init();
217+
ep2.Init();
218+
ep3.Init();
219+
ep4.Init();
220+
ep5.Init();
221+
ep6.Init();
222+
SetTagList(/* endpoint= */ 1, Span<const Clusters::Descriptor::Structs::SemanticTagStruct::Type>(gEp1TagList));
223+
SetTagList(/* endpoint= */ 2, Span<const Clusters::Descriptor::Structs::SemanticTagStruct::Type>(gEp2TagList));
224+
SetTagList(/* endpoint= */ 3, Span<const Clusters::Descriptor::Structs::SemanticTagStruct::Type>(gEp3TagList));
225+
SetTagList(/* endpoint= */ 4, Span<const Clusters::Descriptor::Structs::SemanticTagStruct::Type>(gEp4TagList));
226+
SetTagList(/* endpoint= */ 5, Span<const Clusters::Descriptor::Structs::SemanticTagStruct::Type>(gEp5TagList));
227+
SetTagList(/* endpoint= */ 6, Span<const Clusters::Descriptor::Structs::SemanticTagStruct::Type>(gEp6TagList));
228+
216229
SILABS_LOG("App Task started");
217230

218231
while (true)

0 commit comments

Comments
 (0)