Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Grey Code (possible bug / suggestion)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
grasulgras

Bascom Member



Joined: 31 Jan 2013
Posts: 8

italy.gif
PostPosted: Mon May 25, 2020 9:36 pm    Post subject: Grey Code (possible bug / suggestion) Reply with quote

Hello, everybody.

Just downloaded BASCOM 2.0.8.2 and it's awesome. Until now i ran version 2.0.7.9 and have made quite some projects on it.
There's a new feature which, to be honest, i really like - code graying. It helps me a lot with Spaghetti Code - which is inevitable in some situations... however, it does not always get the code graying right.

For example, i use interrupts a lot, and it grays redundant code as intended - but, because of that waitms (1000) between the two lines and and interrupt handler which reads the variable at two different times, this graying gets it wrong - that code is not redundant.



It does not affect code execution, it just annoys me when it appears on screen like that.

Is there someway to turn it off, just for certain lines. Even better, maybe enable it for other lines, that the IDE did not autodetect? This is a very useful feature!

(BASCOM-AVR version : 2.0.8.2 )
Back to top
View user's profile
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 1135

poland.gif
PostPosted: Mon May 25, 2020 11:56 pm    Post subject: Reply with quote

I think this is intended to be used after some code is done.
You can Enable/Disable it in the menu tab Edit->Show Dead Code
Im using it for search unused but Dim`ed variables (reused code copy/paste). So only when some part of the code is working I enable "Show Dead Code" for check and disable it again because even new Dim`ed variables that I want to use in the next line are greyed till variable is not used.
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6197
Location: Holland

blank.gif
PostPosted: Tue May 26, 2020 8:48 am    Post subject: Reply with quote

EDC is right. it is just a tool to be used when the project is done.
It is important that when you find a problem you report it to support with a sample so it can be improved.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive 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