| 76 | } |
| 77 | |
| 78 | bool probeDS3231Signature() { |
| 79 | uint8_t sec = 0; |
| 80 | if (!readI2CReg8(I2C_ADDR_DS3231, DS3231_SEC_REG, &sec)) { |
| 81 | return false; |
| 82 | } |
| 83 | const uint8_t tensDigit = (sec >> 4) & 0x07; |
| 84 | const uint8_t onesDigit = sec & 0x0F; |
| 85 | |
| 86 | return tensDigit <= 5 && onesDigit <= 9; |
| 87 | } |
| 88 | |
| 89 | bool probeQMI8658Signature() { |
| 90 | uint8_t whoami = 0; |
no test coverage detected