mirror of git://git.sysmocom.de/ofono
handsfree: Be extra pedantic with booleans
This commit is contained in:
parent
017c1161d4
commit
d3560b3784
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue