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