Skip to content

Commit 5afb1f6

Browse files
committed
fix method
1 parent 095e556 commit 5afb1f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/simple-read-VS2/simple-read-VS2.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void onResponse(const VitoWiFi::PacketVS2& response, const VitoWiFi::Datapoint&
3737
}
3838
SERIAL2.print("\n");
3939

40-
if (response.packetType == VitoWiFi::PacketType::ERROR) {
40+
if (response.packetType() == VitoWiFi::PacketType::ERROR) {
4141
SERIAL2.printf("Request %s returned error\n", request.name());
4242
return;
4343
}

examples/simple-write-VS2/simple-write-VS2.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void onResponse(const VitoWiFi::PacketVS2& response, const VitoWiFi::Datapoint&
4343
}
4444
SERIAL2.print("\n");
4545

46-
if (response.packetType == VitoWiFi::PacketType::ERROR) {
46+
if (response.packetType() == VitoWiFi::PacketType::ERROR) {
4747
SERIAL2.printf("Request %s returned error\n", request.name());
4848
return;
4949
}

0 commit comments

Comments
 (0)