bristlemouth / bm_protocol

Primary Bristlemouth firmware repository
https://www.bristlemouth.org/
Apache License 2.0
12 stars 8 forks source link

function to get 2nd order difference #140

Closed russelldeguzman closed 5 months ago

russelldeguzman commented 5 months ago

Adding a static function hook to get a difference signal from a double buffer.

russelldeguzman commented 5 months ago

@towynlin that's a good suggestion - It's definitely possible, the caveat is that encodeDifferenceSignalToBuffer isn't designed to be in place, so a call to differenceSignalFromBuffer, would modify the reference signal in an unintended way. My inclination is to leave it for now, and optimize later.