Minor fixes

This commit is contained in:
Phillip Kühne 2025-02-13 22:57:23 +01:00
parent c7e1af334f
commit 35c11f42e2
Signed by: phillip
GPG Key ID: E4C1C4D2F90902AA
3 changed files with 4 additions and 5 deletions

View File

@ -50,7 +50,6 @@ void vTaskUpdate(void *pvParameters) {
PowerParameters::CurrentConsumptions::CURRENT_WIFI_PEAK +
PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE,
MESH_MAX_EXECUTION_DELAY_MS, NULL)) {
mesh.update();
} else {
ESP_LOGW(TAG, "Skipping mesh update after not being granted power");

View File

@ -258,9 +258,9 @@ uint MotionDetection::getDataFromFIFO(FIFO_Package* buffer){
fifocount = (fifohigh<<8)|fifolow;
//fifocount |= this->readRegister(FIFO_COUNTL);
//fifocount = (this->readRegister(FIFO_COUNTH)<<8);
Serial.println(fifolow);
/*Serial.println(fifolow);
Serial.println(fifohigh);
Serial.println(fifocount);
Serial.println(fifocount);*/
handler->beginTransaction(SPISettings(frequency,SPI_MSBFIRST,SPI_MODE0));
digitalWrite(34,LOW);
handler->transfer(cmdRead(FIFO_DATA));

View File

@ -139,12 +139,12 @@ bool PowerScheduler::waitForCurrentAllowance(
break;
}
}
ESP_LOGI(TAG,
ESP_LOGW(TAG,
"Task %p timed out waiting for %f mA of power;"
"currently allocated: %f mA;"
"total available (2C): %f mA",
xTaskGetCurrentTaskHandle(), neededCurrent, getCurrentCurrent(),
maximumCurrent);
this->maximumCurrent);
return false;
} else {
// Should be impossible to reach