Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bt_app_av.c #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Tonymac32
Copy link

The demo increases the volume every so many seconds, remove that "feature"

The demo increases the volume every so many seconds, remove that "feature"
@MARKANDEY-MAITHANI
Copy link

tatic void volume_change_simulation(void *arg)
{
ESP_LOGI(BT_RC_TG_TAG, "start volume change simulation");

for (;;) {
    /* volume up locally every 10 seconds */
    vTaskDelay(10000 / portTICK_RATE_MS);
     uint8_t volume = (s_volume + 5) & 0x7f;    /// 
    volume_set_by_local_host(volume);
}

}
In this line do not add anything with s_volume
like uint8_t volume = s_volume & 0x7f;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants