@@ -7,7 +7,7 @@ void OLEDDisplay::initialise() {
7
7
setOrientation (OLED_Orientation::ROTATE_90); // when mounted in 2U rack - see rackmount-pi-arduino
8
8
9
9
if (_usingIRSensor)
10
- pinMode (_IRPin, INPUT);
10
+ pinMode (_IRPin, INPUT);
11
11
}
12
12
13
13
void OLEDDisplay::setOrientation (OLED_Orientation orient) {
@@ -23,7 +23,7 @@ void OLEDDisplay::setOrientation(OLED_Orientation orient) {
23
23
24
24
default :
25
25
_rotation = SevenSegmentRender::Rotation_t::ROT_0;
26
- Log.error (F (" Orientation not supported" ));
26
+ Log.error (F (" Orientation not supported" ));
27
27
break ;
28
28
}
29
29
}
@@ -48,12 +48,12 @@ void OLEDDisplay::render(RackState_t&rs, const NetworkState_t& ns) {
48
48
49
49
if (!_usingIRSensor) {
50
50
// just render if no IR sensor is configured
51
- internalRender (rs, ns);
51
+ internalRender (rs, ns);
52
52
return ;
53
53
}
54
54
55
55
// if IR sensor triggered ...
56
- byte state = digitalRead (_IRPin);
56
+ byte state = digitalRead (_IRPin);
57
57
if (state == 1 || _firstDisplay) {
58
58
internalRender (rs, ns);
59
59
}
@@ -64,7 +64,7 @@ void OLEDDisplay::render(RackState_t&rs, const NetworkState_t& ns) {
64
64
}
65
65
else {
66
66
displayOff ();
67
- _l = 0 ;
67
+ _l = 0 ;
68
68
}
69
69
}
70
70
}
@@ -178,7 +178,7 @@ void OLEDDisplay::drawTempErrStates(const Thermos_t& thermos, int x, int y) {
178
178
}
179
179
else {
180
180
// clear
181
- _oled.drawFilledBox (x, y, x+w, y+10 , BLACK);
181
+ _oled.drawFilledBox (x, y, x+w, y+10 , BLACK);
182
182
}
183
183
x += w + 3 ;
184
184
}
@@ -195,7 +195,7 @@ void OLEDDisplay::drawFanErrStates(const Fans_t& fans, int x, int y) {
195
195
}
196
196
else {
197
197
// clear
198
- _oled.drawFilledBox (x, y, x+w, y+10 , BLACK);
198
+ _oled.drawFilledBox (x, y, x+w, y+10 , BLACK);
199
199
}
200
200
x += w + 3 ;
201
201
}
0 commit comments