mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
Remove pairing retransmission
This commit is contained in:
parent
53e662f82b
commit
040abe6fa5
2 changed files with 0 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue