重新定义发送间隔参数
This commit is contained in:
parent
b6c6dc6cdd
commit
f227fa3c89
|
@ -58,6 +58,11 @@ typedef struct
|
||||||
|
|
||||||
|
|
||||||
extern volatile uint8_t TIME_TO_SEND;
|
extern volatile uint8_t TIME_TO_SEND;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#define DataInterval 900
|
||||||
/* USER CODE END ET */
|
/* USER CODE END ET */
|
||||||
|
|
||||||
/* Exported constants --------------------------------------------------------*/
|
/* Exported constants --------------------------------------------------------*/
|
||||||
|
|
|
@ -236,7 +236,7 @@ void TIM1_TRG_COM_TIM11_IRQHandler(void)
|
||||||
if(LL_TIM_IsActiveFlag_UPDATE(TIM11))
|
if(LL_TIM_IsActiveFlag_UPDATE(TIM11))
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
if( count >= 900)
|
if( count >= DataInterval)
|
||||||
{
|
{
|
||||||
TIME_TO_SEND = SEND_DATA;
|
TIME_TO_SEND = SEND_DATA;
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue