重新定义发送间隔参数

This commit is contained in:
zsq1005754173 2021-08-31 15:23:42 +08:00
parent b6c6dc6cdd
commit f227fa3c89
3 changed files with 59 additions and 36 deletions

View File

@ -58,6 +58,11 @@ typedef struct
extern volatile uint8_t TIME_TO_SEND;
#define DataInterval 900
/* USER CODE END ET */
/* Exported constants --------------------------------------------------------*/

View File

@ -236,7 +236,7 @@ void TIM1_TRG_COM_TIM11_IRQHandler(void)
if(LL_TIM_IsActiveFlag_UPDATE(TIM11))
{
count++;
if( count >= 900)
if( count >= DataInterval)
{
TIME_TO_SEND = SEND_DATA;
count = 0;

File diff suppressed because one or more lines are too long