mirror of
https://github.com/seemoo-lab/openhaystack.git
synced 2026-02-14 17:49:54 +00:00
Reducing sending frequency of micro:bit firmware to 2s to reduce power consumption
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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!";
|
||||
|
||||
BIN
OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin
Normal file → Executable file
BIN
OpenHaystack/OpenHaystack/HaystackApp/Firmwares/Microbit/firmware.bin
Normal file → Executable file
Binary file not shown.
Reference in New Issue
Block a user