Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:06 17 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: CLS clears serial console also when PAGE WRITE is not 0

Author Message
epsilon

Senior Member

Joined: 30/07/2020
Location: Belgium
Posts: 255
Posted: 10:47am 15 Jan 2021
Copy link to clipboard 
Print this post

Hi all,

I just wanted to flag something unexpected I came across on CMM2.

I was running a double buffering test where I render some graphics on page 1 (page write is set to 1), then page copy 1 to 0, clear page 1 and repeat.

I set 'OPTION CONSOLE SERIAL' so I can see debug log messages on the serial console while running the test. Unfortunately that didn't work out well because it turns out that CLS clears the serial console, even though page write is not set to 0. I incorrectly assumed that CLS would only affect the currently selected page.

So it looks like I'll have to use a custom clear implementation (a screen size BOX maybe?) instead of CLS to clear page 1.

Ruben/Epsilon.
Epsilon CMM2 projects
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 12:21pm 15 Jan 2021
Copy link to clipboard 
Print this post

Another way is set OPTION CONSOLE SCREEN and write debug messages direct to serial port #3 and use the rest (CLS) as normal...
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025