Remove interfering debug information

This commit is contained in:
Theo Arends 2021-10-02 14:49:50 +02:00
parent 5803407209
commit b82f098383

View File

@ -154,9 +154,9 @@ TasAutoMutex::TasAutoMutex(SemaphoreHandle_t*mutex, const char *name, int maxWai
this->name = name; this->name = name;
if (take) { if (take) {
this->taken = xSemaphoreTakeRecursive(this->mutex, this->maxWait); this->taken = xSemaphoreTakeRecursive(this->mutex, this->maxWait);
if (!this->taken){ // if (!this->taken){
Serial.printf("\r\nMutexfail %s\r\n", this->name); // Serial.printf("\r\nMutexfail %s\r\n", this->name);
} // }
} }
} else { } else {
this->mutex = (SemaphoreHandle_t)nullptr; this->mutex = (SemaphoreHandle_t)nullptr;
@ -192,9 +192,9 @@ void TasAutoMutex::take() {
if (this->mutex) { if (this->mutex) {
if (!this->taken) { if (!this->taken) {
this->taken = xSemaphoreTakeRecursive(this->mutex, this->maxWait); this->taken = xSemaphoreTakeRecursive(this->mutex, this->maxWait);
if (!this->taken){ // if (!this->taken){
Serial.printf("\r\nMutexfail %s\r\n", this->name); // Serial.printf("\r\nMutexfail %s\r\n", this->name);
} // }
} }
} }
} }