mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-11 07:13:31 +00:00
make hsp_hs_send_str_over_rfcomm accept const char *
This commit is contained in:
parent
9283999a68
commit
50ee9b77d7
@ -137,7 +137,7 @@ static void emit_event(uint8_t event_subtype, uint8_t value){
|
|||||||
// remote audio volume control
|
// remote audio volume control
|
||||||
// AG +VGM=13 [0..15] ; HS AT+VGM=6 | AG OK
|
// 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;
|
if (!rfcomm_can_send_packet_now(rfcomm_cid)) return 1;
|
||||||
int err = rfcomm_send_internal(cid, (uint8_t*) command, strlen(command));
|
int err = rfcomm_send_internal(cid, (uint8_t*) command, strlen(command));
|
||||||
if (err){
|
if (err){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user