hfp.c (c8149263fa0ed6feba039c37b502611448b8f498) | hfp.c (8deec6605cc90fefa48d3aafe96338c6d0034607) |
---|---|
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 --- 1515 unchanged lines hidden (view full) --- 1524 hfp_parser_reset_line_buffer(hfp_connection); 1525 1526 if (hfp_connection->command == HFP_CMD_RETRIEVE_AG_INDICATORS){ 1527 hfp_connection->parser_state = HFP_PARSER_CMD_SEQUENCE; 1528 } 1529 return true; 1530 1531 case HFP_PARSER_CUSTOM_COMMAND: | 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 --- 1515 unchanged lines hidden (view full) --- 1524 hfp_parser_reset_line_buffer(hfp_connection); 1525 1526 if (hfp_connection->command == HFP_CMD_RETRIEVE_AG_INDICATORS){ 1527 hfp_connection->parser_state = HFP_PARSER_CMD_SEQUENCE; 1528 } 1529 return true; 1530 1531 case HFP_PARSER_CUSTOM_COMMAND: |
1532 hfp_parser_store_byte(hfp_connection, byte); | 1532 if (hfp_parser_is_end_of_line(byte) == false){ 1533 hfp_parser_store_byte(hfp_connection, byte); 1534 } |
1533 return true; 1534 1535 default: 1536 btstack_assert(false); 1537 return true; 1538 } 1539} 1540 --- 713 unchanged lines hidden --- | 1535 return true; 1536 1537 default: 1538 btstack_assert(false); 1539 return true; 1540 } 1541} 1542 --- 713 unchanged lines hidden --- |