Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Warning please :D

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

Bascom Expert



Joined: 26 Mar 2014
Posts: 608

poland.gif
PostPosted: Tue Aug 06, 2019 4:19 pm    Post subject: Warning please :D Reply with quote

Maybe I need some rest because it takes me an hour to configure what is wrong with my large code.
So I make this small one for the simulator and still wondering why it compiles fine but COM1 still printing "24,10,10,10...."
Code:
$regfile = "m2560def.dat"                                   '8K SRAM | 4K EEPROM
$crystal = 16000000
$hwstack = 256
$swstack = 128
$framesize = 256
$baud = 115200
$baud1 = 115200
$sim

Dim Helpb As Byte
Open "COM1:" For Binary As #1
Open "COM2:" For Binary As #2

Do

  Helpb = Waitkey(2)
  Print #1 , Helpb

Loop
 

, after cup of coffe..
Code:

$regfile = "m2560def.dat"                                   '8K SRAM | 4K EEPROM
$crystal = 16000000
$hwstack = 256
$swstack = 128
$framesize = 256
$baud = 115200
$baud1 = 115200
$sim

Dim Helpb As Byte
Open "COM1:" For Binary As #1
Open "COM2:" For Binary As #2

Do

  Helpb = Waitkey(#2)
  Print #1 , Helpb

Loop


It will be nice if compiler warning me that there is no hash before channel number or not compile at all Very Happy
Now I can back to my code.

(BASCOM-AVR version : 2.0.8.2 )
Back to top
View user's profile Visit poster's website
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1722

blank.gif
PostPosted: Tue Aug 06, 2019 4:59 pm    Post subject: Re: Warning please :D Reply with quote

EDC wrote:
It will be nice if compiler warning me

Oh, it would be also nice if the compiler brews your more coffee.
Back to top
View user's profile
hgrueneis

Bascom Member



Joined: 04 Apr 2009
Posts: 830
Location: A-4786 Brunnenthal

austria.gif
PostPosted: Tue Aug 06, 2019 8:43 pm    Post subject: Reply with quote

@MWS

off topic, but this is the funniest thing I had happening today.
Thank you!
Hubert
Back to top
View user's profile
enniom

Bascom Member



Joined: 20 Oct 2009
Posts: 465

https://www.mcselec.com/c
PostPosted: Tue Aug 06, 2019 11:25 pm    Post subject: Reply with quote

My Bascom compiler serves beer when my code works as intended.

E
Back to top
View user's profile
Evert :-)

Bascom Expert



Joined: 18 Feb 2005
Posts: 2092

netherlands.gif
PostPosted: Wed Aug 07, 2019 12:04 pm    Post subject: Reply with quote

Hi edc

The compiler will give a warning about the hash but you have to set this checkbox first.




Wink

_________________
www.evertdekker.com Bascom code vault
Back to top
View user's profile Visit poster's website
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1722

blank.gif
PostPosted: Wed Aug 07, 2019 7:15 pm    Post subject: Reply with quote

Evert Smile wrote:
The compiler will give a warning about the hash but you have to set this checkbox first.

Now, Evert, how about you, do you have this checkbox checked?
Back to top
View user's profile
Evert :-)

Bascom Expert



Joined: 18 Feb 2005
Posts: 2092

netherlands.gif
PostPosted: Wed Aug 07, 2019 7:19 pm    Post subject: Reply with quote

As you can see in the screenshot I have it checked.
_________________
www.evertdekker.com Bascom code vault
Back to top
View user's profile Visit poster's website
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 1722

blank.gif
PostPosted: Wed Aug 07, 2019 7:41 pm    Post subject: Reply with quote

Evert Smile wrote:
As you can see in the screenshot I have it checked.

Good to know Smile
Back to top
View user's profile
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