hfp_ag.c (6535961a1f105e850ecdf294c128b9fc982ee05a) hfp_ag.c (84a0c24e57c984ba7cea3b26dff16a1b638a9262)
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

--- 626 unchanged lines hidden (view full) ---

635 if (hfp_connection->codecs_state == HFP_CODECS_RECEIVED_LIST){
636 hfp_connection->state = HFP_W4_RETRIEVE_INDICATORS;
637 }
638 return sent;
639
640 case HFP_CMD_RETRIEVE_AG_INDICATORS:
641 if (hfp_connection->state == HFP_W4_RETRIEVE_INDICATORS) {
642 // HF requested AG Indicators and we did expect it
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

--- 626 unchanged lines hidden (view full) ---

635 if (hfp_connection->codecs_state == HFP_CODECS_RECEIVED_LIST){
636 hfp_connection->state = HFP_W4_RETRIEVE_INDICATORS;
637 }
638 return sent;
639
640 case HFP_CMD_RETRIEVE_AG_INDICATORS:
641 if (hfp_connection->state == HFP_W4_RETRIEVE_INDICATORS) {
642 // HF requested AG Indicators and we did expect it
643 hfp_connection->send_ag_indicators_segment = 0;
643 hfp_connection->state = HFP_RETRIEVE_INDICATORS;
644 // continue below in state switch
645 }
646 break;
647
648 case HFP_CMD_RETRIEVE_AG_INDICATORS_STATUS:
649 if (hfp_connection->state != HFP_W4_RETRIEVE_INDICATORS_STATUS) break;
650 hfp_connection->state = HFP_W4_ENABLE_INDICATORS_STATUS_UPDATE;

--- 1767 unchanged lines hidden ---
644 hfp_connection->state = HFP_RETRIEVE_INDICATORS;
645 // continue below in state switch
646 }
647 break;
648
649 case HFP_CMD_RETRIEVE_AG_INDICATORS_STATUS:
650 if (hfp_connection->state != HFP_W4_RETRIEVE_INDICATORS_STATUS) break;
651 hfp_connection->state = HFP_W4_ENABLE_INDICATORS_STATUS_UPDATE;

--- 1767 unchanged lines hidden ---