From bb1fe7cad35e22ef53801486d9e0ac2c8297f83f Mon Sep 17 00:00:00 2001 From: tropho23 <71199294+tropho23@users.noreply.github.com> Date: Mon, 4 Sep 2023 14:16:39 -0400 Subject: [PATCH] GPS toggle for RAK4631 (patch 1 of 2) (#2763) * Added triple-press GPS toggle button changes * Revert edits to extensions.json * comma'd * Update platformio.ini Added line: -DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely. --------- Co-authored-by: Ben Meadors Co-authored-by: code8buster --- variants/rak4631/platformio.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/variants/rak4631/platformio.ini b/variants/rak4631/platformio.ini index 34eed88dd..b9789166f 100644 --- a/variants/rak4631/platformio.ini +++ b/variants/rak4631/platformio.ini @@ -4,6 +4,7 @@ extends = nrf52840_base board = wiscore_rak4631 build_flags = ${nrf52840_base.build_flags} -Ivariants/rak4631 -D RAK_4631 -L "${platformio.libdeps_dir}/${this.__env__}/BSEC2 Software Library/src/cortex-m4/fpv4-sp-d16-hard" + -DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely. build_src_filter = ${nrf52_base.build_src_filter} +<../variants/rak4631> + + + lib_deps = ${nrf52840_base.lib_deps} @@ -13,4 +14,4 @@ lib_deps = rakwireless/RAKwireless NCP5623 RGB LED library@^1.0.2 debug_tool = jlink ; If not set we will default to uploading over serial (first it forces bootloader entry by talking 1200bps to cdcacm) -;upload_protocol = jlink \ No newline at end of file +;upload_protocol = jlink