mirror of
https://github.com/sailfishos/ofono
synced 2025-12-03 16:11:04 +08:00
handsfree: Be extra pedantic with booleans
This commit is contained in:
@@ -422,6 +422,11 @@ void ofono_handsfree_hf_indicator_active_notify(struct ofono_handsfree *hf,
|
|||||||
{
|
{
|
||||||
DBG("%d, %d", indicator, active);
|
DBG("%d, %d", indicator, active);
|
||||||
|
|
||||||
|
if (active)
|
||||||
|
active = TRUE;
|
||||||
|
else
|
||||||
|
active = FALSE;
|
||||||
|
|
||||||
switch (indicator) {
|
switch (indicator) {
|
||||||
case HFP_HF_INDICATOR_ENHANCED_SAFETY:
|
case HFP_HF_INDICATOR_ENHANCED_SAFETY:
|
||||||
if (!hf->have_ddr)
|
if (!hf->have_ddr)
|
||||||
|
|||||||
Reference in New Issue
Block a user