Update. Com_dev_id now not constant
This commit is contained in:
2
modbus.c
2
modbus.c
@@ -22,7 +22,7 @@ static unsigned char timer_state = 0;
|
|||||||
|
|
||||||
|
|
||||||
static uint16_t dev_id = DEFAULT_DEVICE_MODBUS_ID;
|
static uint16_t dev_id = DEFAULT_DEVICE_MODBUS_ID;
|
||||||
const uint16_t com_dev_id = 247;
|
static uint16_t com_dev_id = 247;
|
||||||
|
|
||||||
static void (*ModbusUartSendByte)(USART_TypeDef*, unsigned char);
|
static void (*ModbusUartSendByte)(USART_TypeDef*, unsigned char);
|
||||||
static void (*ModbusTimEnable)(TIM_TypeDef*);
|
static void (*ModbusTimEnable)(TIM_TypeDef*);
|
||||||
|
|||||||
Reference in New Issue
Block a user