View previous topic :: View next topic |
Author |
Message |
EDC
Joined: 26 Mar 2014 Posts: 971
|
Posted: Tue Aug 06, 2019 4:19 pm Post subject: Warning please :D |
|
|
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
Now I can back to my code.
(BASCOM-AVR version : 2.0.8.2 ) |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Tue Aug 06, 2019 4:59 pm Post subject: Re: Warning please :D |
|
|
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 |
|
|
hgrueneis
Joined: 04 Apr 2009 Posts: 902 Location: A-4786 Brunnenthal
|
Posted: Tue Aug 06, 2019 8:43 pm Post subject: |
|
|
@MWS
off topic, but this is the funniest thing I had happening today.
Thank you!
Hubert |
|
Back to top |
|
|
enniom
Joined: 20 Oct 2009 Posts: 537
|
Posted: Tue Aug 06, 2019 11:25 pm Post subject: |
|
|
My Bascom compiler serves beer when my code works as intended.
E |
|
Back to top |
|
|
Evert :-)
Joined: 18 Feb 2005 Posts: 2156
|
Posted: Wed Aug 07, 2019 12:04 pm Post subject: |
|
|
Hi edc
The compiler will give a warning about the hash but you have to set this checkbox first.
_________________ www.evertdekker.com Bascom code vault |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Wed Aug 07, 2019 7:15 pm Post subject: |
|
|
Evert 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 |
|
|
Evert :-)
Joined: 18 Feb 2005 Posts: 2156
|
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Wed Aug 07, 2019 7:41 pm Post subject: |
|
|
Evert wrote: | As you can see in the screenshot I have it checked. |
Good to know |
|
Back to top |
|
|
|