Skip to content

Commit 3cbcfb9

Browse files
author
Nathan
committed
Added dynamic compiling of ltc2959 lib.
Signed-off-by: Nathan <[email protected]>
1 parent 9c27f75 commit 3cbcfb9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/fuel_gauge/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ add_subdirectory_ifdef(CONFIG_MAX17048 max17048)
88
add_subdirectory_ifdef(CONFIG_BQ27Z746 bq27z746)
99
add_subdirectory_ifdef(CONFIG_FUEL_GAUGE_AXP2101 axp2101)
1010
add_subdirectory_ifdef(CONFIG_LC709203F lc709203f)
11+
add_subdirectory_ifdef(CONFIG_FUEL_GAUGE_LTC2959 ltc2959)
1112

1213
zephyr_library_sources_ifdef(CONFIG_USERSPACE fuel_gauge_syscall_handlers.c)
1314

drivers/fuel_gauge/ltc2959/ltc2959.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ static int ltc2959_get_prop(const struct device *dev,
445445
default:
446446
return -ENOTSUP;
447447
}
448-
return 0;
448+
return ret;
449449
}
450450

451451
//TODO: bind to DEVICE_API when supported

0 commit comments

Comments
 (0)