espnow if id is 0 call set_settings
This commit is contained in:
@@ -33,7 +33,7 @@ async def main():
|
||||
async for mac, msg in e:
|
||||
data = json.loads(msg)
|
||||
print(data)
|
||||
if settings["id"] in data["ids"]:
|
||||
if settings["id"] in data["ids"] or settings["id"] == 0:
|
||||
settings.set_settings(data["settings"], patterns)
|
||||
print("should not print")
|
||||
|
||||
|
Reference in New Issue
Block a user