This commit is contained in:
hehaoyang 2023-11-23 14:21:12 +08:00
parent f2e8c43e2e
commit edf95ec041
2 changed files with 8 additions and 5 deletions

View File

@ -22,7 +22,7 @@
#define API_FRAME_RESPONSE (0x01) /* 响应帧 */
#define API_FRAME_NOTIFICATION (0x02) /* 通知帧 */
#define SOFTWARE_VERSION ("V1.22")
#define SOFTWARE_VERSION ("V1.23")
#define HARDWARE_VERSION ("V1.01")
extern uint8_t api_upgrade_mode;

View File

@ -240,11 +240,11 @@ static void set_volume_level(uint8_t level)
strobe_light_flashing_enable = 0x00;
break;
case 0x01:
m62429_set_vol(9);
m62429_set_vol(7);
strobe_light_flashing_enable = 0x01;
break;
case 0x02:
m62429_set_vol(8);
m62429_set_vol(5);
strobe_light_flashing_enable = 0x01;
break;
case 0x03:
@ -412,7 +412,9 @@ static void strobe_light_operate_task(uint8_t uuid)
else if (strobe_light_flashing_mode == 1)
{
/* 频闪 */
gpio_bit_toggle(LED_STROBE_PERIPH, LED_STROBE_PIN);
gpio_bit_write(LED_STROBE_PERIPH, LED_STROBE_PIN, !(strobe_light_flashing_count % 2));
//gpio_bit_toggle(LED_STROBE_PERIPH, LED_STROBE_PIN);
if (strobe_light_flashing_count >= 4)
{
@ -427,7 +429,8 @@ static void strobe_light_operate_task(uint8_t uuid)
else if (strobe_light_flashing_mode == 2)
{
/* 爆闪 */
gpio_bit_toggle(LED_STROBE_PERIPH, LED_STROBE_PIN);
gpio_bit_write(LED_STROBE_PERIPH, LED_STROBE_PIN, !(strobe_light_flashing_count % 2));
//gpio_bit_toggle(LED_STROBE_PERIPH, LED_STROBE_PIN);
if (strobe_light_flashing_count >= 20)
{