Skip to content
Permalink
Browse files

burst detector not longer needed

  • Loading branch information...
jp112sdl committed Apr 2, 2019
1 parent 6bc1293 commit 5224ef1827e36a7a6020633174b1d64e2cfdad3b
Showing with 2 additions and 8 deletions.
  1. +1 −4 HB-UNI-SenAct-8-8-RC/HB-UNI-SenAct-8-8-RC.ino
  2. +1 −4 HB-UNI-SenAct-8-8-SC/HB-UNI-SenAct-8-8-SC.ino
@@ -7,6 +7,7 @@
// define this to read the device id, serial and device type from bootloader section
// #define USE_OTA_BOOTLOADER
// #define NDEBUG
#define USE_WOR

#define EI_NOTEXTERNAL
#include <EnableInterrupt.h>
@@ -83,9 +84,6 @@ const struct DeviceInfo PROGMEM devinfo = {
typedef AvrSPI<10, 11, 12, 13> RadioSPI;
typedef AskSin<StatusLed<LED_PIN>, battOp_ARGUMENT, Radio<RadioSPI, 2> > Hal;
Hal hal;
#ifdef USE_BATTERY_MODE
BurstDetector<Hal> bd(hal); // to wake by remote burst, taken from HM-LC-SW1-BA-PCB.ino
#endif

DEFREGISTER(Reg0, MASTERID_REGS, DREG_INTKEY)
class SwList0 : public RegList0<Reg0> {
@@ -296,7 +294,6 @@ void setup () {

initPeerings(first);
#ifdef USE_BATTERY_MODE
bd.enable(sysclock);
hal.activity.stayAwake(seconds2ticks(15));
hal.battery.low(LOWBAT_VOLTAGE);
// measure battery every 12 hours
@@ -7,6 +7,7 @@

// define this to read the device id, serial and device type from bootloader section
// #define USE_OTA_BOOTLOADER
#define USE_WOR

#define EI_NOTEXTERNAL
#include <EnableInterrupt.h>
@@ -77,9 +78,6 @@ const struct DeviceInfo PROGMEM devinfo = {
typedef AvrSPI<10, 11, 12, 13> RadioSPI;
typedef AskSin<StatusLed<LED_PIN>, battOp_ARGUMENT, Radio<RadioSPI, 2> > Hal;
Hal hal;
#ifdef USE_BATTERY_MODE
BurstDetector<Hal> bd(hal); // to wake by remote burst, taken from HM-LC-SW1-BA-PCB.ino
#endif

DEFREGISTER(Reg0, MASTERID_REGS, DREG_INTKEY, DREG_CYCLICINFOMSG, DREG_SABOTAGEMSG)
class SwList0 : public RegList0<Reg0> {
@@ -277,7 +275,6 @@ void setup () {
initPeerings(first);

#ifdef USE_BATTERY_MODE
bd.enable(sysclock);
hal.activity.stayAwake(seconds2ticks(15));
hal.battery.low(LOWBAT_VOLTAGE);
// measure battery every 12 hours

0 comments on commit 5224ef1

Please sign in to comment.
You can’t perform that action at this time.