diff --git a/MyConfig.h b/MyConfig.h index f0b79b4..16672cc 100644 --- a/MyConfig.h +++ b/MyConfig.h @@ -225,6 +225,15 @@ #define MY_RS485_MAX_MESSAGE_LENGTH (40) #endif +/** + * @def MY_RS485_SOH_COUNT + * @brief Use this in case of collisions on the bus. 3 might be a good setting. + */ +#ifndef MY_RS485_SOH_COUNT +#define MY_RS485_SOH_COUNT (1) +#endif + + /** * @def MY_RS485_DE_PIN * @brief RS485 driver enable pin. diff --git a/hal/transport/MyTransportRS485.cpp b/hal/transport/MyTransportRS485.cpp index ffe67a4..c32695d 100644 --- a/hal/transport/MyTransportRS485.cpp +++ b/hal/transport/MyTransportRS485.cpp @@ -266,7 +266,7 @@ bool transportSend(const uint8_t to, const void* data, const uint8_t len, const #endif // Start of header by writing multiple SOH - for(byte w=0; w<1; w++) { + for(byte w=0; w