feat: 🐛 测试:添加volatile修饰,去掉定时睡眠
This commit is contained in:
parent
19ae45b80d
commit
26cbbf05f1
@ -70,7 +70,7 @@ uint8_t w_idx, r_idx; // RX 信号
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
uint32_t slot_ind_flag = 0;
|
||||
volatile uint32_t slot_ind_flag = 0;
|
||||
uint32_t slot_ind_time_flag = 0;
|
||||
uint32_t g_slot_time = 0;
|
||||
uint32_t gu32_value = 0;
|
||||
@ -192,7 +192,8 @@ void *handleUdpTransmission(void *arg)
|
||||
uint8_t block_n = 0;
|
||||
uint8_t cut_i = 0;
|
||||
while (1)
|
||||
{ usleep(10);
|
||||
{
|
||||
// usleep(10);
|
||||
if (1 == slot_ind_flag)
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user