Thank you.
It seems that this code not run as it do :
void onBattSwChange(unsigned int newValue) {
/* your code here */
}
DcsBios::IntegerBuffer battSwBuffer(0x4828, 0x0080, 7, onBattSwChange);
for exemple, this code works perfectly :
void onAfterburnSwChange(unsigned int newValue) {
/* your code here */
}
DcsBios::IntegerBuffer afterburnSwBuffer(0x4804, 0x8000, 15, onAfterburnSwChange);
I think there's a lot of error with adresses.
Where can I check that?
Because some of number seems to be good between Mods\aircraft\JF-17\Cockpit\Scripts\clickabledata.lua and Saved Games\DCS.openbeta\Scripts\DCS-BIOS\lib\JF-17.lua but won't works.
[Edit] With some tests, all (all I test) "void XYZ (unsigned int newValue) {}" code who won't works, "DcsBios::Switch2Pos XYZ("XYZ_SW", PIN_A)" code won't works too.
So I think there's a real addressing problem . JF-17 module fault? wrong address written by developers on a .lua file? Other?