Problem with Serial2_Options and flir camera

I have a quadcopter with 4.0.4 (it was previously 3.6.12 and tested all firmwares up to 4.0.4) in which a flir is connected on serial2 and i am using mavproxy. Seems that no matter what the camera is recognized by my FC and also MP and gives me a wrong mode value on mavproxy.
I have made this post on mavproxy section 0x00000040 spamming mavlink and seen on mavproxy but even though i have tested all possible values, i cant seem to make the FC not send camera info on mavproxy.
Any ideas?