Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ms5611.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ enum ms5611_status ms5611_read_eeprom_coeff(uint8_t command, uint16_t *coeff)

*coeff = (buffer[0] << 8) | buffer[1];

if (*coeff == 0)
if (command != MS5611_PROM_ADDRESS_READ_ADDRESS_0 && *coeff == 0)
return ms5611_status_i2c_transfer_error;

return ms5611_status_ok;
Expand Down Expand Up @@ -446,4 +446,4 @@ bool ms5611_crc_check (uint16_t *n_prom, uint8_t crc)

#ifdef __cplusplus
}
#endif
#endif