Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

why my new instructions are being ignored ?

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1016
Location: France

france.gif
PostPosted: Mon Aug 02, 2021 4:24 pm    Post subject: why my new instructions are being ignored ? Reply with quote

I have a programme that works well, which is a reduction of a much larger programme with a lot of includes that have been removed.
I wanted to add some new procedure call something in a select...case
but these calls remain grayed out, whereas once the program is compiled it works!


the variables flag_light100 =80 and the variable flag_eclai=15
and the result is :
[img]



jp Crying or Very sad [/img]

(BASCOM-AVR version : 2.0.8.4 )

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5307
Location: Holland

blank.gif
PostPosted: Mon Aug 02, 2021 6:49 pm    Post subject: Reply with quote

the gray text is dead code coloring. and as written in the help : it is always compiled. Not the be confused with excluded code which is not compiled.
in order to find the problem a sample program that reproduces the problem is required. (i should create a macro since i have asked for this at least 1001 times)

when you use proper indent function and the indention is not correct it points to a problem in the code. this is often simply found with the code explorer.

_________________
Mark
Back to top
View user's profile Visit poster's website
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 1016
Location: France

france.gif
PostPosted: Mon Aug 02, 2021 6:56 pm    Post subject: Reply with quote

right Mark

I found my problem, I can't explain it, I changed a lot of things, simplified a lot and now it works without problem.

Rolling Eyes
JP Wink

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum