Skip to content

v7.1.2 - Fix Consecutive Trigger Detection

Latest

Choose a tag to compare

@tstoegi tstoegi released this 03 Feb 10:14
24bc527

🐛 Bugfix Release

Fixes critical bug where consecutive triggers were not detected when STA pin remained HIGH between sleep cycles.

🔧 Changes

v7.1.2 (Bugfix)

  • Fix: Set mwWasActive = false in reenable() instead of isActive()
  • Issue: Previous trigger's latched HIGH state prevented detection of new triggers
  • Solution: Always assume STA will be LOW after deepSleep() + power-off

v7.1.1 (Initial Release)

  • Implement RTC-based state persistence across deep sleep
  • Add magic number validation for RTC data integrity
  • Distinguish between MicroWakeupper triggers and other wakeup sources
  • Add interactive test sketch with flexible library selection
  • Improve API documentation

✅ Test Results

All 4 test scenarios passing:

  1. ✅ Cold boot/power-on → resetedBySwitch() = FALSE
  2. ✅ Timer wakeup → resetedBySwitch() = FALSE
  3. ✅ Switch trigger after reenable() → resetedBySwitch() = TRUE
  4. ✅ Hardware reset without reenable() → resetedBySwitch() = FALSE

🔄 Backward Compatibility

✅ No breaking changes - existing code works without modification

📦 Installation

Arduino Library Manager:
Search for "MicroWakeupper Wemos D1 Mini Battery Shield"

Manual Installation:
Download ZIP and extract to Arduino libraries folder

🔗 Hardware

Requires MicroWakeupper Shield PCB v7.1


🤖 Co-developed with Claude Code