From eea04fd81fc336af1408d9dfd882e111a4709b33 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 9 Feb 2021 15:37:54 +0100 Subject: [PATCH] tests/driver_bq2429x: fix implicit conversion in helper function The parameter expects a bq2429x_chrg_fault_t but is declared as bq2429x_chrg_stat_t --- tests/driver_bq2429x/_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/driver_bq2429x/_util.h b/tests/driver_bq2429x/_util.h index 50df8d8be7..6a40866ff2 100644 --- a/tests/driver_bq2429x/_util.h +++ b/tests/driver_bq2429x/_util.h @@ -186,9 +186,9 @@ static inline const char *_util_chrg_stat_to_str(bq2429x_chrg_stat_t stat) return ""; } -static inline const char *_util_chrg_fault_to_str(bq2429x_chrg_stat_t stat) +static inline const char *_util_chrg_fault_to_str(bq2429x_chrg_fault_t fault) { - switch (stat) { + switch (fault) { case BQ2429x_CHRG_FAULT_NORMAL: return "Normal"; case BQ2429x_CHRG_FAULT_INPUT: