Sudden need for DIMs in Oshonsoft

Thread Starter

camerart

Joined Feb 25, 2013
3,724
Hi,
I'm working on an Oshonsoft program, and after moving a section of CODE, it wouldn't compile calling for extra DIMs, that weren't needed before.
The section I moved has no relation to these DIMs.
Here is a section that is affected by this, where suddenly DIMs for both radset = radio_command_mode are now needed :
Any ideas, please.
Camerart.
Code:
Proc init_HC12()  'PRESS BUTTON (OR RADSET)
    radset = radio_command_mode  'SET HC-12 COMMAND ON
    Hserout "AT+C002", CrLf  '433.800
    radset = radio_data_mode  'SET HC-12 RUN ON
End Proc
 
Last edited:

jjw

Joined Dec 24, 2013
823
Hi,
I'm working on an Oshonsoft program, and after moving a section of CODE, it wouldn't compile calling for extra DIMs, that weren't needed before.
The section I moved has no relation to these DIMs.
Here is a section that is affected by this, where suddenly DIMs for both radset = radio_command_mode are now needed :
Any ideas, please.
Camerart.
Code:
Proc init_HC12()  'PRESS BUTTON (OR RADSET)
    radset = radio_command_mode  'SET HC-12 COMMAND ON
    Hserout "AT+C002", CrLf  '433.800
    radset = radio_data_mode  'SET HC-12 RUN ON
End Proc
Is radset declared in the main program?
 

Thread Starter

camerart

Joined Feb 25, 2013
3,724
Is radset declared in the main program?
Hi J,
It is, but it's in an INCLUDE. Yesterday, when compiling, it showed [VARIABLEs already used } I commneted the ones I have just added out in the MAIN program, and it then compiled.
So it must be something to do with the INCLUDES.

There is also another problem with them, as they appear to be included at the end of the compile (Or similar) and we had to bring one INCLUED back into the MAIN prog for it to work.
An Osh mystery.
C
 
Top