Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor command processor #2687

Merged
merged 17 commits into from
Dec 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Get rid of Debug utility.
slav-at-attachix committed Dec 4, 2023
commit 0e9cfebd1d4a3b21e836cdca8fc62d7ee894f81f
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <SmingCore.h>
#include <Debug.h>
#include <ModbusMaster.h>

#define MODBUS_COM_SPEED 115200
@@ -105,11 +104,6 @@ void init()
SERIAL_TX_ONLY); // 115200 by default, GPIO1,GPIO3, see Serial.swap(), HardwareSerial
debugComPort.systemDebugOutput(true);

Debug.setDebug(debugComPort);
Debug.initCommand();
Debug.start();
Debug.printf("This is the debug output\r\n");

mbMaster.preTransmission(preTransmission);
mbMaster.postTransmission(postTransmission);
mbMaster.logReceive(mbLogReceive);