Daniel-Constantin Mierla wrote:
IIRC, the mi command takes a bitmask as value while the config function takes the index in bitmask. So, if you want to test flag 2:
if(is_gflag("2"))
kamctl fifo set_gflag 4
4 = 2^2
For flag ten you have to set it via mi to 2^10 which is 1024.
Try and see if works.
This seems inconsistent and needlessly complicated and does not follow from the documentation at all. I would recommend changing the set_gflag MI function to take the bit offset as an argument rather than the bitmask if is_gflag() checks the offset.