1
0
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:
nagrawal 2020-07-27 13:12:50 +02:00 committed by Nishchay-sopho
parent 42eb044ec6
commit cd46360eab

View File

@ -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) {