temp: [#61] Make things a little clearer.

* Newline in log isn't nice.
* I managed to confuse even myself with this 0x4a.
It's actually not used anywhere currently.
This commit is contained in:
RedHawk 2023-06-14 20:36:26 +03:00
parent 88a7bac525
commit 7a25e14a8f
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ uint16_t SensorTempSHT20::read()
crc = rbuf[2]; crc = rbuf[2];
if (this->crc_check(rbuf, 2, crc)) if (this->crc_check(rbuf, 2, crc))
LOG_WARNING("Temperature sensor reported crc mismatch.\nRaw data: %04x; CRC: %x", raw_temp, crc); LOG_WARNING("Temperature sensor reported crc mismatch. Raw data: %04x; CRC: %x", raw_temp, crc);
return raw_temp; return raw_temp;
} }

View File

@ -43,7 +43,7 @@ void Temperature::taskFunction()
void thread_temperature(void* pvParams) void thread_temperature(void* pvParams)
{ {
ThreadCommon::CommonManagers * manager = static_cast<ThreadCommon::CommonManagers*>(pvParams); ThreadCommon::CommonManagers * manager = static_cast<ThreadCommon::CommonManagers*>(pvParams);
I2C_config conf{0x4a, 100000}; I2C_config conf{0, 100000};
I2C i2c(conf); I2C i2c(conf);
Temperature t(manager->qm, &i2c); Temperature t(manager->qm, &i2c);
t.taskFunction(); t.taskFunction();