Skip to content

Commit b7d3c25

Browse files
authored
Missing enum prefix
1 parent 4aae710 commit b7d3c25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/high_low_temperature_alert/high_low_temperature_alert.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ void loop() {
5252
tmp.update();
5353

5454
if (alert_flag) {
55-
if (tmp.getAlertType () == HIGHALERT) {
55+
if (tmp.getAlertType () == TMP117_ALERT::HIGHALERT) {
5656
Serial.print("High Temperature allert : ");
5757
Serial.print (tmp.getTemperature());
5858
Serial.println (" °C");
5959
}
60-
else if (tmp.getAlertType () == LOWALERT) {
60+
else if (tmp.getAlertType () == TMP117_ALERT::LOWALERT) {
6161
Serial.print("Low Temperature allert : ");
6262
Serial.print (tmp.getTemperature());
6363
Serial.println (" °C");

0 commit comments

Comments
 (0)