Skip to content

Conversation

@zer0page
Copy link
Contributor

  • volume was not capped logically in the volume control task leading to alarm not stopping, this caps it.
    @divkam @mburnshello

vol = (ramp_ctx_t){
.current = 0,
.target = desc->volume,
.target = desc->volume > 64?64:desc->volume,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

desc.volume is an int. we should check for < 0 too. target is unsigned

@divkam
Copy link
Contributor

divkam commented Oct 13, 2016

👍

@zer0page zer0page merged commit 0588670 into master Oct 13, 2016
@zer0page zer0page deleted the cap_volume branch October 13, 2016 23:52
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.

3 participants