Fixed warnings
This commit is contained in:
parent
13c1ef5e68
commit
1cc9e814f1
11
sps30.c
11
sps30.c
@ -183,20 +183,19 @@ int8_t sps30_read_firmware_version ( uint8_t * fw_ver_hi, uint8_t * fw_ver_lo )
|
||||
sps30_enable_interrupts();
|
||||
|
||||
// TODO: Proc to vraci NACK? Vyresit.
|
||||
/*if (result != 0) {
|
||||
return SPS30_ERROR;
|
||||
if (result != 0) {
|
||||
// return SPS30_ERROR;
|
||||
}
|
||||
return SPS30_OK;*/
|
||||
|
||||
delay_ms(1);
|
||||
/* read out */
|
||||
sps30_disable_interrupts();
|
||||
result = sps30_i2c_receive(SPS30_I2C_ADDRESS<<1, i2c_rx_buffer, 3);
|
||||
sps30_enable_interrupts();
|
||||
/*if (result != 0)
|
||||
if (result != 0)
|
||||
{
|
||||
return SPS30_ERROR;
|
||||
}*/
|
||||
// return SPS30_ERROR;
|
||||
}
|
||||
|
||||
*fw_ver_hi = i2c_rx_buffer[0];
|
||||
*fw_ver_lo = i2c_rx_buffer[1];
|
||||
|
Loading…
Reference in New Issue
Block a user