Prevent Empty commands or messages from being sent

Authored by rizzitello on Dec 13 2018, 4:35 PM.

Description

Prevent Empty commands or messages from being sent

Summary:
Before:
You could press send on the command widget and AtCore would send an empty message of \n\r to the printer. This could cause the machine to stop responding as atcore is waiting on a new ready state if the machine does not send "ok" after the empty command
After:
if there is no text to send there is no emit.

Reviewers: laysrodrigues, tcanabrava, patrickelectric

Reviewed By: laysrodrigues, patrickelectric

Subscribers: Atelier: AtCore

Tags: Atelier: AtCore

Differential Revision: https://phabricator.kde.org/D17566

Merged Changes

CommitAuthorDetailsCommitted
9f7d781d32acD17566rizzitello
Prevent Empty commands or messages from being sent 
Dec 13 2018