From 345ec0925ed0dd99f04cb4335dfeb98de1e1f0d2 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Sat, 7 May 2022 15:26:38 +0900 Subject: [PATCH] tidy up --- @postman/src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/@postman/src/main.cpp b/@postman/src/main.cpp index e8e200c..2bed24b 100644 --- a/@postman/src/main.cpp +++ b/@postman/src/main.cpp @@ -369,9 +369,12 @@ void setup() { Serial.println("Error initializing ESP-NOW"); return; } +#if defined(ESP8266) esp_now_set_self_role(ESP_NOW_ROLE_COMBO); +#endif esp_now_register_send_cb(onDataSent); esp_now_register_recv_cb(onDataReceive); + // AddressBook * book = lib.getBookByTitle(ADDRESSBOOK_TITLE); if (book == NULL) {