Skip to content

Commit 979211a

Browse files
authored
Add Qingping CGP1W support (#820)
1 parent 7e7b9a6 commit 979211a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/ZgatewayBT.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ JsonObject& process_bledata(JsonObject& BLEdata) {
942942
return process_milamp(BLEdata);
943943
}
944944
Log.trace(F("Is it a CGP1W?" CR));
945-
if (strstr(service_data, "08094c") != NULL && strlen(service_data) > ServicedataMinLength) {
945+
if ((strstr(service_data, "08094c") != NULL || strstr(service_data, "080972") != NULL) && strlen(service_data) > ServicedataMinLength) {
946946
Log.trace(F("CGP1W data reading" CR));
947947
BLEdata.set("model", "CGP1W");
948948
if (device->sensorModel == -1)

0 commit comments

Comments
 (0)