I've just tried moving the log packet print code to a separate function, and turning off compiler optimisation within that function ('#pragma GCC optimize("O0")'). This doesn't help.
I've just tried moving the log packet print code to a separate function, and turning off compiler optimisation within that function ('#pragma GCC optimize("O0")'). This doesn't help.