Skip to content

Commit

Permalink
MYCILA_PZEM_ASYNC_PRIORITY
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Feb 22, 2024
1 parent 6fd893a commit 4b8cd03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MycilaPZEM004Tv3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void Mycila::PZEM::begin(HardwareSerial* serial,
ESP_LOGW(TAG, "Unable to read PZEM at address 0x%02X. Please verify that the device is powered and that its address is correctly set.", address);
}

assert(!async || xTaskCreateUniversal(_pzemTask, "pzemTask", stackSize, this, MYCILA_PZEM__ASYNC_PRIORITY, &_taskHandle, core) == pdPASS);
assert(!async || xTaskCreateUniversal(_pzemTask, "pzemTask", stackSize, this, MYCILA_PZEM_ASYNC_PRIORITY, &_taskHandle, core) == pdPASS);

_enabled = true;
}
Expand Down
4 changes: 2 additions & 2 deletions src/MycilaPZEM004Tv3.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#define MYCILA_PZEM_ASYNC_CORE 0
#endif

#ifndef MYCILA_PZEM__ASYNC_PRIORITY
#define MYCILA_PZEM__ASYNC_PRIORITY 1
#ifndef MYCILA_PZEM_ASYNC_PRIORITY
#define MYCILA_PZEM_ASYNC_PRIORITY 1
#endif

#ifndef MYCILA_PZEM_ASYNC_STACK_SIZE
Expand Down

0 comments on commit 4b8cd03

Please sign in to comment.