mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
ems-writes to front of queue, some typos
This commit is contained in:
@@ -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);
|
uint8_t year = (uint8_t)(Helpers::atoint(&value[6]) - 2000);
|
||||||
if (day > 0 && day < 32 && month > 0 && month < 13) {
|
if (day > 0 && day < 32 && month > 0 && month < 13) {
|
||||||
LOG_INFO(F("Setting maintenance date to %02d.%02d.%04d"), day, month, year + 2000);
|
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);
|
write_command(0x15, 0, data, 5, 0x15);
|
||||||
} else {
|
} else {
|
||||||
LOG_WARNING(F("Setting maintenance: wrong format %d.%d.%d"), day, month, year + 2000);
|
LOG_WARNING(F("Setting maintenance: wrong format %d.%d.%d"), day, month, year + 2000);
|
||||||
|
|||||||
@@ -894,7 +894,7 @@ void EMSESP::send_read_request(const uint16_t type_id, const uint8_t dest) {
|
|||||||
|
|
||||||
// sends write request
|
// 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) {
|
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
|
txservice_.set_post_send_query(validate_typeid); // store which type_id to send Tx read after a write
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user