We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 018faef commit 514836fCopy full SHA for 514836f
libraries/ESP_NOW/src/ESP32_NOW.cpp
@@ -261,7 +261,7 @@ int ESP_NOW_Class::getEncryptedPeerCount() const {
261
int ESP_NOW_Class::getMaxDataLen() const {
262
if (max_data_len == 0) {
263
log_e("ESP-NOW not initialized. Please call begin() first to get the max data length.");
264
- return -ESP_ERR_ESPNOW_NOT_INIT;
+ return -1;
265
}
266
267
return max_data_len;
@@ -270,7 +270,7 @@ int ESP_NOW_Class::getMaxDataLen() const {
270
int ESP_NOW_Class::getVersion() const {
271
if (version == 0) {
272
log_e("ESP-NOW not initialized. Please call begin() first to get the version.");
273
274
275
276
return version;
0 commit comments