packages/libs/libupm/patches/002-at42qt1070-id.patch
Rosen Penev e8845b49a2 libupm: Update to 1.7.1
The libmraa update introduced several API changes that broke libupm.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-11-30 13:01:44 -08:00

11 lines
350 B
Diff

--- a/src/at42qt1070/at42qt1070.cxx
+++ b/src/at42qt1070/at42qt1070.cxx
@@ -53,7 +53,7 @@ AT42QT1070::AT42QT1070(int bus, uint8_t address)
return;
}
- if (readChipID() != 0x2E) {
+ if (readChipID() != 0x1b && readChipID() != 0x2E) {
throw std::runtime_error("Chip ID does not match the expected value (2Eh)");
}