mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
libupm: add fixes for 2 sensors
Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- a/src/at42qt1070/at42qt1070.cxx
|
||||
+++ b/src/at42qt1070/at42qt1070.cxx
|
||||
@@ -53,7 +53,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
- if (readChipID() != 0x2E) {
|
||||
+ if (readChipID() != 0x1b && readChipID() != 0x2E) {
|
||||
throw std::runtime_error("Chip ID does not match the expected value (2Eh)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user