|
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: BelgiumPosts: 255 |
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 RepublicPosts: 533 |
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 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |