Skip to content

Commit

Permalink
Merge pull request #169 from tmobile/samples-tmo_shell-Fix-lc709204f-…
Browse files Browse the repository at this point in the history
…conditionals-in-src-misc_test.c

samples: tmo_shell: Fix lc709204f conditionals in src/misc_test.c
  • Loading branch information
rtalbott-tmo authored Jun 22, 2023
2 parents 972bcfc + 4ef1f23 commit ec7c21b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/tmo_shell/src/misc_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ int misc_test()
}

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

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

0 comments on commit ec7c21b

Please sign in to comment.