Serial buffer clear

Moderators: TomKerekes, dynomotion

Post Reply
User avatar
cnc_freak
Posts: 55
Joined: Fri Apr 20, 2018 5:36 am

Serial buffer clear

Post by cnc_freak » Wed Jul 20, 2022 5:21 am

Sometimes i put a printf in the initialisation c program, which runs in an endless loop, for debuging purposes.
After i run the loop again and check the console for the outcome,
i realize that the printf is runing ones every loop and the console is flooded with the debuging message.
Even if the c program stops executing, the message keeps coming :o.
The only remedy is to recycle the power on kflop board. The problem is that sometimes im doing remote debuging and there is none to do that.
IS there another way to flush the serial buffer?
Regards.

User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: Serial buffer clear

Post by TomKerekes » Thu Jul 21, 2022 4:48 pm

Opps sorry somehow missed this.

Well don't do that :)

The console messages are buffered by KMotionServer.exe. If you exit KMotion.exe then KMotionServer.exe should exit and discard them.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply