Skip to content

Commit aa06c8b

Browse files
author
Fabrizio Mirabito
committed
Fix dimmed typo
1 parent 8d93e57 commit aa06c8b

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

ArduinoCloudThing.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
#include "types/automation/CloudColoredLight.h"
3636
#include "types/automation/CloudContactSensor.h"
37-
#include "types/automation/CloudDimmeredLight.h"
37+
#include "types/automation/CloudDimmedLight.h"
3838
#include "types/automation/CloudLight.h"
3939
#include "types/automation/CloudMotionSensor.h"
4040
#include "types/automation/CloudSmartPlug.h"

types/automation/CloudDimmeredLight.h renamed to types/automation/CloudDimmedLight.h

+15-15
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
// a commercial license, send an email to [email protected].
1616
//
1717

18-
#ifndef CLOUDDIMMEREDLIGHT_H_
19-
#define CLOUDDIMMEREDLIGHT_H_
18+
#ifndef CLOUDDIMMEDLIGHT_H_
19+
#define CLOUDDIMMEDLIGHT_H_
2020

2121
/******************************************************************************
2222
INCLUDE
@@ -29,49 +29,49 @@
2929
/******************************************************************************
3030
CLASS DECLARATION
3131
******************************************************************************/
32-
class DimmeredLight {
32+
class DimmedLight {
3333
public:
3434
bool swi;
3535
float bri;
36-
DimmeredLight(bool swi, float bri): swi(swi), bri(bri) {
36+
DimmedLight(bool swi, float bri): swi(swi), bri(bri) {
3737
}
3838

39-
bool operator==(DimmeredLight & aLight) {
39+
bool operator==(DimmedLight & aLight) {
4040
return aLight.swi == swi && aLight.bri == bri;
4141
}
4242

43-
bool operator!=(DimmeredLight & aLight) {
43+
bool operator!=(DimmedLight & aLight) {
4444
return !(operator==(aLight));
4545
}
4646

4747
};
4848

49-
class CloudDimmeredLight : public ArduinoCloudProperty {
49+
class CloudDimmedLight : public ArduinoCloudProperty {
5050
private:
51-
DimmeredLight _value,
52-
_cloud_value;
51+
DimmedLight _value,
52+
_cloud_value;
5353

5454
public:
55-
CloudDimmeredLight() : _value(false, 0), _cloud_value(false, 0) {}
56-
CloudDimmeredLight(bool swi, float brightness) : _value(swi, brightness), _cloud_value(swi, brightness) {}
55+
CloudDimmedLight() : _value(false, 0), _cloud_value(false, 0) {}
56+
CloudDimmedLight(bool swi, float brightness) : _value(swi, brightness), _cloud_value(swi, brightness) {}
5757

5858
virtual bool isDifferentFromCloud() {
5959

6060
return _value != _cloud_value;
6161
}
6262

63-
CloudDimmeredLight& operator=(DimmeredLight aLight) {
63+
CloudDimmedLight& operator=(DimmedLight aLight) {
6464
_value.swi = aLight.swi;
6565
_value.bri = aLight.bri;
6666
updateLocalTimestamp();
6767
return *this;
6868
}
6969

70-
DimmeredLight getCloudValue() {
70+
DimmedLight getCloudValue() {
7171
return _cloud_value;
7272
}
7373

74-
DimmeredLight getValue() {
74+
DimmedLight getValue() {
7575
return _value;
7676
}
7777

@@ -118,4 +118,4 @@ class CloudDimmeredLight : public ArduinoCloudProperty {
118118
}
119119
};
120120

121-
#endif /* CLOUDDIMMEREDLIGHT_H_ */
121+
#endif /* CLOUDDIMMEDLIGHT_H_ */

0 commit comments

Comments
 (0)