Skip to content

Commit

Permalink
Set time interval back to 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2 committed Apr 29, 2017
1 parent cd3e98f commit ef22c3b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@
- Arduino IDE
- Simblee platform for arduino

# Instructions
# Setup

- Update Makefile with paths to the NRF SDK, and your serial board, and where arduino is installed.
- `make && make install`

# Compile and flash devices

Program a sensor with id 1, turning off serial for power savings

`make program SERIAL_PORT=/dev/cu.usbserial-FTZ86FTC SENSOR_ID=1 SENSOR_CONFIGURATION_OPTIONS="--no-serial"`

Program a master listening device that doesn't sleep, and listens all the time.

`make program SERIAL_PORT=/dev/cu.usbserial-DN00D34P SENSOR_ID=3 SENSOR_CONFIGURATION_OPTIONS="--no-sleep"`
2 changes: 1 addition & 1 deletion src/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static void periodic_timer_cb(void * p_context)
DBG_TICK_PIN(6);


if (m_current_time % 3 == 0) {
if (m_current_time % 10 == 0) {
//report_debug_register();
SET_LED(LED_GREEN);
app_timer_cnt_get(&m_clock_second_start_counter_value);
Expand Down

0 comments on commit ef22c3b

Please sign in to comment.