mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-04 07:24:20 +01:00
resolve #2368 - Fixes "undefined reference to `__atomic_fetch_add_4'" Notably, std::atomic_fetch_add(&counter, 1) would also trigger this. std::atomic<T>::operator+= does not allow in-place change, since it returns T instead of T& - Another work reduction in the isr, treat 'value' as `counter > 0` instead of relying on the notion that we can sometimes read the value with very low counter frequency - Fix duplicated initializations