버퍼 초기화 추가

This commit is contained in:
2026-04-16 14:06:29 +09:00
parent 2861cb9815
commit 01bdbf7cfe
4 changed files with 19 additions and 18 deletions

View File

@@ -55,7 +55,7 @@ void dr_ble_return_3(const char *tag, uint16_t v1, uint16_t v2, uint16_t v3)
void dr_ble_debug(uint16_t point_id, uint16_t value)
{
/* Use dedicated buffer to avoid conflicts with ble_bin_buffer */
static uint8_t dbg_buffer[8];
static uint8_t dbg_buffer[8] = {0};
dbg_buffer[0] = 'd';
dbg_buffer[1] = 'b';
@@ -73,7 +73,7 @@ void dr_ble_debug(uint16_t point_id, uint16_t value)
void dr_ble_return_piezo_1(const char *tag, uint16_t value)
{
/* Use dedicated buffer for piezo responses to avoid conflicts with ble_bin_buffer */
static uint8_t piezo_buffer[8];
static uint8_t piezo_buffer[8] = {0};
piezo_buffer[0] = tag[0];
piezo_buffer[1] = tag[1];