Skip to content

Commit ec7c21b

Browse files
authored
Merge pull request #169 from tmobile/samples-tmo_shell-Fix-lc709204f-conditionals-in-src-misc_test.c
samples: tmo_shell: Fix lc709204f conditionals in src/misc_test.c
2 parents 972bcfc + 4ef1f23 commit ec7c21b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/tmo_shell/src/misc_test.c

+2
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ int misc_test()
162162
}
163163

164164
if (strcmp(CONFIG_BOARD, "tmo_dev_edge") == 0) {
165+
#if DT_NODE_EXISTS(DT_NODELABEL(lc709204f))
165166
/* Check for presence of On Semi LC709204F fuel gauge
166167
* (battery must be present for this to pass)
167168
*/
@@ -171,6 +172,7 @@ int misc_test()
171172
} else {
172173
printf("i2c read " I2C_1 "0xb 0x15 2 - LC709204F fuel gauge - shell command was successful\n");
173174
}
175+
#endif
174176

175177
/* Scan the secondary I2C bus (I2C_0) */
176178
if ((ret = shell_execute_cmd(shell_backend_uart_get_ptr(), "i2c scan " I2C_0)) != 0) {

0 commit comments

Comments
 (0)