Skip to content

4.0.0-alpha.8

Pre-release
Pre-release
Compare
Choose a tag to compare
@ssilverman ssilverman released this 05 Jan 07:18
· 182 commits to master since this release

Added

  • Added an optional rangeError parameter to Receiver::get to match the same parameter in Receiver::get16Bit. Because the function returns a value, it provides a way to know whether a zero return value was because of an error.
  • New "Keep Short Packets" feature and associated PacketStats::isShort variable that allow callers to know when received packet data is part of a short packet, if kept. Also added new Receiver::setKeepShortPackets(bool) and Receiver::isKeepShortPackets() functions for setting and getting the feature state.

Changed

  • Changed util::IntervalTimer to accept std::functions for the trigger function.
  • Renamed util::IntervalTimer to util::PeriodicTimer.
  • Improved IDLE and timeout handling logic. It is the goal to be as accurate as possible.

Fixed

  • Fixed Receiver::packetStats() and Receiver::errorStats() to access the values atomically.
  • Changed Receiver::setRXWatchPin(int) to disable all interrupts instead of just the UART ones because the pin interrupt may have a different priority.