mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-19 02:51:47 +02:00
Minor fixes
This commit is contained in:
parent
c7e1af334f
commit
35c11f42e2
@ -50,7 +50,6 @@ void vTaskUpdate(void *pvParameters) {
|
|||||||
PowerParameters::CurrentConsumptions::CURRENT_WIFI_PEAK +
|
PowerParameters::CurrentConsumptions::CURRENT_WIFI_PEAK +
|
||||||
PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE,
|
PowerParameters::CurrentConsumptions::CURRENT_WIFI_BASE,
|
||||||
MESH_MAX_EXECUTION_DELAY_MS, NULL)) {
|
MESH_MAX_EXECUTION_DELAY_MS, NULL)) {
|
||||||
|
|
||||||
mesh.update();
|
mesh.update();
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGW(TAG, "Skipping mesh update after not being granted power");
|
ESP_LOGW(TAG, "Skipping mesh update after not being granted power");
|
||||||
|
@ -258,9 +258,9 @@ uint MotionDetection::getDataFromFIFO(FIFO_Package* buffer){
|
|||||||
fifocount = (fifohigh<<8)|fifolow;
|
fifocount = (fifohigh<<8)|fifolow;
|
||||||
//fifocount |= this->readRegister(FIFO_COUNTL);
|
//fifocount |= this->readRegister(FIFO_COUNTL);
|
||||||
//fifocount = (this->readRegister(FIFO_COUNTH)<<8);
|
//fifocount = (this->readRegister(FIFO_COUNTH)<<8);
|
||||||
Serial.println(fifolow);
|
/*Serial.println(fifolow);
|
||||||
Serial.println(fifohigh);
|
Serial.println(fifohigh);
|
||||||
Serial.println(fifocount);
|
Serial.println(fifocount);*/
|
||||||
handler->beginTransaction(SPISettings(frequency,SPI_MSBFIRST,SPI_MODE0));
|
handler->beginTransaction(SPISettings(frequency,SPI_MSBFIRST,SPI_MODE0));
|
||||||
digitalWrite(34,LOW);
|
digitalWrite(34,LOW);
|
||||||
handler->transfer(cmdRead(FIFO_DATA));
|
handler->transfer(cmdRead(FIFO_DATA));
|
||||||
|
@ -139,12 +139,12 @@ bool PowerScheduler::waitForCurrentAllowance(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ESP_LOGI(TAG,
|
ESP_LOGW(TAG,
|
||||||
"Task %p timed out waiting for %f mA of power;"
|
"Task %p timed out waiting for %f mA of power;"
|
||||||
"currently allocated: %f mA;"
|
"currently allocated: %f mA;"
|
||||||
"total available (2C): %f mA",
|
"total available (2C): %f mA",
|
||||||
xTaskGetCurrentTaskHandle(), neededCurrent, getCurrentCurrent(),
|
xTaskGetCurrentTaskHandle(), neededCurrent, getCurrentCurrent(),
|
||||||
maximumCurrent);
|
this->maximumCurrent);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
// Should be impossible to reach
|
// Should be impossible to reach
|
||||||
|
Loading…
x
Reference in New Issue
Block a user