mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-02 05:20:59 +02:00
Setting loging level to VERBOSE on Semaphore::take (#3545)
This commit is contained in:
@ -186,7 +186,7 @@ void FreeRTOS::Semaphore::giveFromISR() {
|
|||||||
* @return True if we took the semaphore.
|
* @return True if we took the semaphore.
|
||||||
*/
|
*/
|
||||||
bool FreeRTOS::Semaphore::take(std::string owner) {
|
bool FreeRTOS::Semaphore::take(std::string owner) {
|
||||||
log_d("Semaphore taking: %s for %s", toString().c_str(), owner.c_str());
|
log_v("Semaphore taking: %s for %s", toString().c_str(), owner.c_str());
|
||||||
bool rc = false;
|
bool rc = false;
|
||||||
if (m_usePthreads) {
|
if (m_usePthreads) {
|
||||||
pthread_mutex_lock(&m_pthread_mutex);
|
pthread_mutex_lock(&m_pthread_mutex);
|
||||||
@ -195,7 +195,7 @@ bool FreeRTOS::Semaphore::take(std::string owner) {
|
|||||||
}
|
}
|
||||||
m_owner = owner;
|
m_owner = owner;
|
||||||
if (rc) {
|
if (rc) {
|
||||||
log_d("Semaphore taken: %s", toString().c_str());
|
log_v("Semaphore taken: %s", toString().c_str());
|
||||||
} else {
|
} else {
|
||||||
log_e("Semaphore NOT taken: %s", toString().c_str());
|
log_e("Semaphore NOT taken: %s", toString().c_str());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user