bristlemouth / bm_protocol

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

function to get 2nd order difference #140

Closed russelldeguzman closed 1 month ago

russelldeguzman commented 1 month ago

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

russelldeguzman commented 1 month 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.