Skip to content

Commit 3137b9a

Browse files
committed
Removed using namespace from header file and added chip:: back into the type defintion since build fails.
1 parent 576f976 commit 3137b9a

File tree

1 file changed

+6
-7
lines changed
  • examples/energy-management-app/energy-management-common/energy-reporting/include

1 file changed

+6
-7
lines changed

examples/energy-management-app/energy-management-common/energy-reporting/include/FakeReadings.h

+6-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <lib/core/DataModelTypes.h>
2323
#include <system/SystemLayer.h>
2424

25-
using namespace ::chip;
2625
class FakeReadings
2726
{
2827
public:
@@ -60,14 +59,14 @@ class FakeReadings
6059
*/
6160
void FakeReadingsUpdate();
6261

63-
void SetPower(Power_mW power_mW);
64-
Power_mW GetPower();
62+
void SetPower(chip::Power_mW power_mW);
63+
chip::Power_mW GetPower();
6564

66-
void SetVoltage(Voltage_mV voltage_mV);
67-
Voltage_mV GetVoltage();
65+
void SetVoltage(chip::Voltage_mV voltage_mV);
66+
chip::Voltage_mV GetVoltage();
6867

69-
void SetCurrent(Amperage_mA current_mA);
70-
Amperage_mA GetCurrent();
68+
void SetCurrent(chip::Amperage_mA current_mA);
69+
chip::Amperage_mA GetCurrent();
7170

7271
/**
7372
* @brief Timer expiry callback to handle fake load

0 commit comments

Comments
 (0)