diff --git a/Firmware/Microbit_v1/Makefile b/Firmware/Microbit_v1/Makefile index 4d3155d..862e42e 100644 --- a/Firmware/Microbit_v1/Makefile +++ b/Firmware/Microbit_v1/Makefile @@ -1,7 +1,7 @@ PLATFORM := nRF51822 NRF51_SDK_PATH := $(shell pwd)/nrf51_sdk_v4_4_2_33551 NRF51_SDK_DOWNLOAD_URL := https://developer.nordicsemi.com/nRF5_SDK/nRF51_SDK_v4.x.x/nrf51_sdk_v4_4_2_33551.zip -OPENHAYSTACK_FIRMWARE_PATH := $(shell pwd)/../OpenHaystack/OpenHaystack/HaystackApp/firmware.bin +OPENHAYSTACK_FIRMWARE_PATH := $(shell pwd)/../../OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin export PLATFORM export NRF51_SDK_PATH @@ -10,7 +10,7 @@ ifeq ($(DEPLOY_PATH),) DEPLOY_PATH := /Volumes/MICROBIT endif -offline-finding/build/offline-finding.bin: $(NRF51_SDK_PATH) blessed/.git +offline-finding/build/offline-finding.bin: $(NRF51_SDK_PATH) blessed/.git offline-finding/main.c $(MAKE) -C blessed $(MAKE) -C offline-finding diff --git a/Firmware/Microbit_v1/offline-finding/main.c b/Firmware/Microbit_v1/offline-finding/main.c index f42567f..8953f01 100644 --- a/Firmware/Microbit_v1/offline-finding/main.c +++ b/Firmware/Microbit_v1/offline-finding/main.c @@ -15,7 +15,7 @@ #include "ll.h" -#define ADV_INTERVAL LL_ADV_INTERVAL_MIN_NONCONN /* 100 ms */ +#define ADV_INTERVAL 2000000 /* 2 s */ /* don't make `const` so we can replace key in compiled binary image */ static char public_key[28] = "OFFLINEFINDINGPUBLICKEYHERE!"; diff --git a/OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin b/OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin old mode 100644 new mode 100755 index ce4f816..776b8fc Binary files a/OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin and b/OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin differ