mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 06:39:53 +00:00
make hsp_hs_send_str_over_rfcomm accept const char *
This commit is contained in:
parent
7053c3c684
commit
9b3a9947d3
@ -137,7 +137,7 @@ static void emit_event(uint8_t event_subtype, uint8_t value){
|
||||
// remote audio volume control
|
||||
// AG +VGM=13 [0..15] ; HS AT+VGM=6 | AG OK
|
||||
|
||||
static int hsp_hs_send_str_over_rfcomm(uint16_t cid, char * command){
|
||||
static int hsp_hs_send_str_over_rfcomm(uint16_t cid, const char * command){
|
||||
if (!rfcomm_can_send_packet_now(rfcomm_cid)) return 1;
|
||||
int err = rfcomm_send_internal(cid, (uint8_t*) command, strlen(command));
|
||||
if (err){
|
||||
|
Loading…
x
Reference in New Issue
Block a user