Rename Power.* to PowerManager.* for clarity
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user