Skip to content

Commit

Permalink
Making production egonomics improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrolds committed Nov 30, 2024
1 parent 5214f90 commit 528abc2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion code/nrf-connect/samples/ble/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_ASSERT=y

# Application config - see all options in Kconfig.
# CONFIG_PRST_BLE_ENCODING_BTHOME_V2=y

CONFIG_PRST_BLE_ENCODING_BTHOME_V2=y
# CONFIG_PRST_BLE_ENCODING_BPARASITE_V2=y

# 1s
# CONFIG_PRST_SLEEP_DURATION_MSEC=1000
# 10m
# CONFIG_PRST_SLEEP_DURATION_MSEC=600000
# 30m
CONFIG_PRST_SLEEP_DURATION_MSEC=1800000

# prstlib config - ser all options in prstlib/Kconfig.
# CONFIG_PRSTLIB_LOG_LEVEL_DBG=y
1 change: 1 addition & 0 deletions code/nrf-connect/samples/ble/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ static int prst_loop(prst_sensors_t *sensors) {
int main(void) {
__ASSERT(!prst_init(), "Error in prst_init()");
prst_led_flash(2);
LOG_INF("Sleep duration: %d\n", CONFIG_PRST_SLEEP_DURATION_MSEC);
prst_sensors_t sensors;
while (true) {
__ASSERT(!prst_loop(&sensors), "Error in prst_loop()");
Expand Down

0 comments on commit 528abc2

Please sign in to comment.