make hsp_hs_send_str_over_rfcomm accept const char *

This commit is contained in:
Matthias Ringwald 2015-11-07 16:38:10 +01:00
parent 7053c3c684
commit 9b3a9947d3

View File

@ -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){