Skip to content

Commit 880f135

Browse files
committed
Reducing sending frequency of micro:bit firmware to 2s to reduce power consumption
1 parent edf2b59 commit 880f135

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Firmware/Microbit_v1/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PLATFORM := nRF51822
22
NRF51_SDK_PATH := $(shell pwd)/nrf51_sdk_v4_4_2_33551
33
NRF51_SDK_DOWNLOAD_URL := https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v4.x.x/nrf51_sdk_v4_4_2_33551.zip
4-
OPENHAYSTACK_FIRMWARE_PATH := $(shell pwd)/../OpenHaystack/OpenHaystack/HaystackApp/firmware.bin
4+
OPENHAYSTACK_FIRMWARE_PATH := $(shell pwd)/../../OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin
55

66
export PLATFORM
77
export NRF51_SDK_PATH
@@ -10,7 +10,7 @@ ifeq ($(DEPLOY_PATH),)
1010
DEPLOY_PATH := /Volumes/MICROBIT
1111
endif
1212

13-
offline-finding/build/offline-finding.bin: $(NRF51_SDK_PATH) blessed/.git
13+
offline-finding/build/offline-finding.bin: $(NRF51_SDK_PATH) blessed/.git offline-finding/main.c
1414
$(MAKE) -C blessed
1515
$(MAKE) -C offline-finding
1616

Firmware/Microbit_v1/offline-finding/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include "ll.h"
1717

18-
#define ADV_INTERVAL LL_ADV_INTERVAL_MIN_NONCONN /* 100 ms */
18+
#define ADV_INTERVAL 2000000 /* 2 s */
1919

2020
/* don't make `const` so we can replace key in compiled binary image */
2121
static char public_key[28] = "OFFLINEFINDINGPUBLICKEYHERE!";
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)