hfp_hf.c (598d4936f0733c027ac68bc9a6130a7a76a81190) | hfp_hf.c (c090e55228d48e4c78869d71dda5ebff4511c68d) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 954 unchanged lines hidden (view full) --- 963 return; 964 } 965 966 if (hfp_connection->hf_send_dtmf_code){ 967 char code = hfp_connection->hf_send_dtmf_code; 968 hfp_connection->hf_send_dtmf_code = 0; 969 hfp_connection->ok_pending = 1; 970 hfp_hf_send_dtmf(hfp_connection->rfcomm_cid, code); | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 954 unchanged lines hidden (view full) --- 963 return; 964 } 965 966 if (hfp_connection->hf_send_dtmf_code){ 967 char code = hfp_connection->hf_send_dtmf_code; 968 hfp_connection->hf_send_dtmf_code = 0; 969 hfp_connection->ok_pending = 1; 970 hfp_hf_send_dtmf(hfp_connection->rfcomm_cid, code); |
971 // notify client that dtmf was sent 972 char buffer[2]; 973 buffer[0] = code; 974 buffer[1] = 0; 975 hfp_emit_string_event(hfp_connection, HFP_SUBEVENT_TRANSMIT_DTMF_CODES, buffer); |
|
971 return; 972 } 973 974 if (hfp_connection->hf_send_binp){ 975 hfp_connection->hf_send_binp = 0; 976 hfp_connection->ok_pending = 1; 977 hfp_hf_send_binp(hfp_connection->rfcomm_cid); 978 return; --- 1231 unchanged lines hidden --- | 976 return; 977 } 978 979 if (hfp_connection->hf_send_binp){ 980 hfp_connection->hf_send_binp = 0; 981 hfp_connection->ok_pending = 1; 982 hfp_hf_send_binp(hfp_connection->rfcomm_cid); 983 return; --- 1231 unchanged lines hidden --- |