mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-08 12:36:42 +00:00
made changes to detection because it was completely wrong, CST226SE has 2 posible adresses
This commit is contained in:
parent
5286a5abc0
commit
673cf48eb6
@ -470,8 +470,8 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize)
|
|||||||
SCAN_SIMPLE_CASE(PCT2075_ADDR, PCT2075, "PCT2075", (uint8_t)addr.address);
|
SCAN_SIMPLE_CASE(PCT2075_ADDR, PCT2075, "PCT2075", (uint8_t)addr.address);
|
||||||
case CST328_ADDR:
|
case CST328_ADDR:
|
||||||
// Do we have the CST328 or the CST226SE
|
// Do we have the CST328 or the CST226SE
|
||||||
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0xAB), 8);
|
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0xAB), 1);
|
||||||
if (registerValue == 0x3232365345) {
|
if (registerValue == 0xA9) {
|
||||||
type = CST226SE;
|
type = CST226SE;
|
||||||
logFoundDevice("CST226SE", (uint8_t)addr.address);
|
logFoundDevice("CST226SE", (uint8_t)addr.address);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user