Migrate serial drivers
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "esp_wifi.h"
|
||||
#include "meter.h"
|
||||
#include "serial_mdb.h"
|
||||
#include "orno_modbus.h"
|
||||
#include "nvs.h"
|
||||
|
||||
/* MicroOcpp includes */
|
||||
@@ -218,7 +218,7 @@ float setTemperatureInput()
|
||||
float setPowerInput()
|
||||
{
|
||||
ESP_LOGI(TAG, "PowerInput");
|
||||
// return (float)serial_mdb_get_meter_data().activepower;
|
||||
// return (float)orno_modbus_get_meter_state().activepower;
|
||||
return meter_getData().wattA + meter_getData().wattB + meter_getData().wattC;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user