mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
driver/sdp3x: Resolved init fail error
This commit is contained in:
parent
42eb044ec6
commit
cd46360eab
@ -446,7 +446,7 @@ static bool _check_product_number(uint8_t *readData)
|
||||
if (readData[1] != SDP31_PRODUCT_NO_BYTE_1) {
|
||||
return false;
|
||||
}
|
||||
if ((readData[3] != SDP3X_MODEL_31) || (readData[3] != SDP3X_MODEL_32)) {
|
||||
if ((readData[3] != SDP3X_MODEL_31) && (readData[3] != SDP3X_MODEL_32)) {
|
||||
return false;
|
||||
}
|
||||
if (readData[4] != SDP31_PRODUCT_NO_BYTE_3) {
|
||||
|
Loading…
Reference in New Issue
Block a user