diff options
author | Denis Kenzior <denkenz@gmail.com> | 2014-01-31 15:14:08 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2014-10-20 13:40:28 -0500 |
commit | d3560b3784ac9bbe57bdbe0cc86e64b9a87b0ce0 (patch) | |
tree | 9b88132e88e2dcb8511ab9aea0924c4f2e507e55 /src | |
parent | 017c1161d4089d8bd14adc601d3f9c140700ee75 (diff) | |
download | ofono-d3560b3784ac9bbe57bdbe0cc86e64b9a87b0ce0.tar.bz2 |
handsfree: Be extra pedantic with booleans
Diffstat (limited to 'src')
-rw-r--r-- | src/handsfree.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/handsfree.c b/src/handsfree.c index 49eef679..30ab7022 100644 --- a/src/handsfree.c +++ b/src/handsfree.c @@ -422,6 +422,11 @@ void ofono_handsfree_hf_indicator_active_notify(struct ofono_handsfree *hf, { DBG("%d, %d", indicator, active); + if (active) + active = TRUE; + else + active = FALSE; + switch (indicator) { case HFP_HF_INDICATOR_ENHANCED_SAFETY: if (!hf->have_ddr) |