适配PWM63D亮度与速度指令
This commit is contained in:
@@ -129,10 +129,10 @@ void scan_uart(uint8_t *arr)
|
|||||||
choose_mode_falsg=user_rx_buf[1]-1U;
|
choose_mode_falsg=user_rx_buf[1]-1U;
|
||||||
startTimer(&timer1,1);
|
startTimer(&timer1,1);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 5:
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 3:
|
||||||
if(POWEROFF==deviceStatus)break;
|
if(POWEROFF==deviceStatus)break;
|
||||||
if(Mode==mode0){
|
if(Mode==mode0){
|
||||||
if(user_rx_buf[1] < BRIGHTNESS_MIN_PERCENT)
|
if(user_rx_buf[1] < BRIGHTNESS_MIN_PERCENT)
|
||||||
@@ -142,7 +142,7 @@ void scan_uart(uint8_t *arr)
|
|||||||
Brightness = user_rx_buf[1];
|
Brightness = user_rx_buf[1];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 4:
|
||||||
if(POWEROFF==deviceStatus)break;
|
if(POWEROFF==deviceStatus)break;
|
||||||
if(user_rx_buf[1] > SPEED_MAX_LEVEL)
|
if(user_rx_buf[1] > SPEED_MAX_LEVEL)
|
||||||
user_rx_buf[1] = SPEED_MAX_LEVEL;
|
user_rx_buf[1] = SPEED_MAX_LEVEL;
|
||||||
|
|||||||
Reference in New Issue
Block a user