Remove pairing retransmission

This commit is contained in:
Daniel Öster 2025-07-29 10:49:48 +03:00
parent 53e662f82b
commit 040abe6fa5
2 changed files with 0 additions and 9 deletions

View file

@ -283,10 +283,6 @@ void SmaBydHvsInverter::transmit_can(unsigned long currentMillis) {
if (transmit_can_init == false) { //We completed sending the batches
batch_send_index = 0;
retry_pairing_count++;
if (retry_pairing_count < MAX_RETRY_ATTEMPTS) {
transmit_can_init = true; //Start over
}
}
}
}

View file

@ -28,13 +28,8 @@ class SmaBydHvsInverter : public CanInverterProtocol {
unsigned long previousMillis100ms = 0;
unsigned long previousMillisBatch = 0;
const uint8_t delay_between_batches_ms = 7; //TODO, tweak to as low as possible before CAN errors appear
#define MAX_RETRY_ATTEMPTS 0 // TODO, Set your desired retry count on pairing messages
uint8_t batch_send_index = 0;
uint8_t retry_pairing_count = 0;
bool transmit_can_init = false;
uint8_t pairing_events = 0;
uint32_t inverter_time = 0;
uint16_t inverter_voltage = 0;