Rename Power.* to PowerManager.* for clarity

This commit is contained in:
2025-02-16 01:10:33 +01:00
parent ff11ad95b0
commit 5efa7a5efd
20 changed files with 152 additions and 152 deletions

View File

@@ -1,7 +1,7 @@
#include "ColorDetection.h"
void ColorDetection::begin(void) {
if (!Power::waitForCurrentAllowance(
if (!PowerManager::waitForCurrentAllowance(
PowerParameters::PowerConsumers::RGBW_SENSOR,
PowerParameters::CurrentConsumptions::CURRENT_SENSOR_RGBW,
COLOR_DETECTION_MAX_EXECUTION_DELAY_MS, NULL)) {
@@ -100,4 +100,4 @@ float ColorDetection::modelCurrentConsumption() {
float ColorDetection::modelChargeConsumption(uint16_t durationMs) {
return (PowerParameters::CurrentConsumptions::CURRENT_SENSOR_RGBW *
durationMs) / 10e6f;
}
}

View File

@@ -11,7 +11,7 @@
#ifndef ColorDetection_h
#define ColorDetection_h
#include "../power/Power.h"
#include "../power/PowerManager.h"
#include <Arduino.h>
#include <Wire.h>
#include <stdint.h>