- Messages
- 39
- Country

Hi,
i'm developping a gauge for radio com and i have a problem with variables set.
on the gauge there's a 4 position switch which is dedicated to fixed frequencies and 1 position for manual selection. this one is saved in variable and called back when switched to its position after switching to fixed frequencies...
the code i use for changing the frequency is (for example for whole dec)
the variable LASTFREQ is to keep the last used to call back.
but when i do that part of code the variable doesn't change at the first click...i explain...
Freq is 120.10
i click on the mousearea active freq is 119.10 and last freq is 120.10, next click actve freq is 118.10 and lastfreq becomes 119.10...and so on...
what i want is to get the same freq on active and in LASTFREQ variable at the same click...
this code seems to assume this but not at the first time and i don't understand why...
does anyone have any suggestion or tip ?
thank's in advance
i'm developping a gauge for radio com and i have a problem with variables set.
on the gauge there's a 4 position switch which is dedicated to fixed frequencies and 1 position for manual selection. this one is saved in variable and called back when switched to its position after switching to fixed frequencies...
the code i use for changing the frequency is (for example for whole dec)
Code:
(L:SELFREQ) 0 == if{ (>K:COM_STBY_RADIO_SWAP)
(>K:COM_RADIO_WHOLE_DEC)
(>K:COM_STBY_RADIO_SWAP)
(A:COM ACTIVE FREQUENCY:1, Frequency BCD16) (>L:LASTFREQ, Frequency BCD16)
}
but when i do that part of code the variable doesn't change at the first click...i explain...
Freq is 120.10
i click on the mousearea active freq is 119.10 and last freq is 120.10, next click actve freq is 118.10 and lastfreq becomes 119.10...and so on...
what i want is to get the same freq on active and in LASTFREQ variable at the same click...
this code seems to assume this but not at the first time and i don't understand why...
does anyone have any suggestion or tip ?
thank's in advance