ems-writes to front of queue, some typos

This commit is contained in:
MichaelDvP
2021-01-30 12:55:03 +01:00
parent f769d02ef9
commit 04e15a7337
3 changed files with 3 additions and 3 deletions

View File

@@ -1070,7 +1070,7 @@ bool Boiler::set_maintenance(const char * value, const int8_t id) {
uint8_t year = (uint8_t)(Helpers::atoint(&value[6]) - 2000);
if (day > 0 && day < 32 && month > 0 && month < 13) {
LOG_INFO(F("Setting maintenance date to %02d.%02d.%04d"), day, month, year + 2000);
uint8_t data[5] = {2, (uint8_t)(maintenanceTime_/100), day, month, year};
uint8_t data[5] = {2, (uint8_t)(maintenanceTime_ / 100), day, month, year};
write_command(0x15, 0, data, 5, 0x15);
} else {
LOG_WARNING(F("Setting maintenance: wrong format %d.%d.%d"), day, month, year + 2000);

View File

@@ -894,7 +894,7 @@ void EMSESP::send_read_request(const uint16_t type_id, const uint8_t dest) {
// sends write request
void EMSESP::send_write_request(const uint16_t type_id, const uint8_t dest, const uint8_t offset, uint8_t * message_data, const uint8_t message_length, const uint16_t validate_typeid) {
txservice_.add(Telegram::Operation::TX_WRITE, dest, type_id, offset, message_data, message_length);
txservice_.add(Telegram::Operation::TX_WRITE, dest, type_id, offset, message_data, message_length, true);
txservice_.set_post_send_query(validate_typeid); // store which type_id to send Tx read after a write
}

View File

@@ -664,7 +664,7 @@ uint16_t TxService::post_send_query() {
set_post_send_query(0); // reset
// delay the request if we have a different type_id for post_send_query
delayed_send_ = (this->telegram_last_->type_id == post_typeid) ? 0 : (uuid::get_uptime() + POST_SEND_DELAY);
}
}
return post_typeid;
}