Skip to content

Commit 1eb917e

Browse files
committed
bt_app_spp: echo ERROR when detected an undefined command
1 parent cd00787 commit 1eb917e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/src/user/bt_app_spp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ void bt_app_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
127127
} else {
128128
esp_spp_write(param->write.handle, strlen(rsp_str[2]), (uint8_t *)rsp_str[2]);
129129
}
130+
} else {
131+
esp_spp_write(param->write.handle, strlen(rsp_str[2]), (uint8_t *)rsp_str[2]);
130132
}
131133
} else {
132134
esp_err_t err = esp_ota_write(update_handle, (const void *)param->data_ind.data, param->data_ind.len);

0 commit comments

Comments
 (0)