1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #15963 from aabadie/pr/tests/driver_bq2429_bug

tests/driver_bq2429x: fix implicit conversion in helper function
This commit is contained in:
Alexandre Abadie 2021-02-10 10:55:07 +01:00 committed by GitHub
commit 6d0942a863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: