From edf95ec041418ea07af68959765fd7c4c8fccf5a Mon Sep 17 00:00:00 2001 From: hehaoyang <1109196436@qq.com> Date: Thu, 23 Nov 2023 14:21:12 +0800 Subject: [PATCH] V1.23 --- GD32F103C8T6/App/User/Peripheral/Api/api.h | 2 +- GD32F103C8T6/App/User/app.c | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/GD32F103C8T6/App/User/Peripheral/Api/api.h b/GD32F103C8T6/App/User/Peripheral/Api/api.h index e4e91f3..6f4d1ca 100644 --- a/GD32F103C8T6/App/User/Peripheral/Api/api.h +++ b/GD32F103C8T6/App/User/Peripheral/Api/api.h @@ -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; diff --git a/GD32F103C8T6/App/User/app.c b/GD32F103C8T6/App/User/app.c index 142cf66..1dbe80d 100644 --- a/GD32F103C8T6/App/User/app.c +++ b/GD32F103C8T6/App/User/app.c @@ -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) {