AtCore::initSerial => AtCore::newConnection
ClosedPublic

Authored by rizzitello on Jan 2 2019, 3:02 PM.

Details

Summary
  • AtCore::initSerial => AtCore::newConnection
  • AtCore now aware of when machine starts and waits for machine to come up before sending any commands.
Test Plan
Connect printer with both autodetect and manual plugin loading.

Diff Detail

Repository
R232 AtCore
Branch
connectPrinter
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 6678
Build 6696: arc lint + arc unit
rizzitello requested review of this revision.Jan 2 2019, 3:02 PM
rizzitello created this revision.
rizzitello updated this revision to Diff 48541.Jan 2 2019, 3:52 PM
  • Work better for grbl / sprinter
  • Make loadFirmwarePlugin private
  • Disable user interaction with device settings when connected.
rizzitello updated this revision to Diff 48545.Jan 2 2019, 3:59 PM
  • Report what plugin was loaded to log
rizzitello updated this revision to Diff 48549.Jan 2 2019, 5:12 PM

Create a new function waitForPrinterReboot instead of using lambda for it

rizzitello updated this revision to Diff 48550.Jan 2 2019, 5:21 PM
  • Adjust AtCore::newConnection doxygen brief
rizzitello updated this revision to Diff 48551.Jan 2 2019, 5:25 PM
  • Adjust Copyright year for changed items
yurchor added a subscriber: yurchor.Jan 2 2019, 6:32 PM
yurchor added inline comments.
testclient/mainwindow.cpp
268
281

Same here.

462

Same here + it is a fragile thing to search for the translated string (I'm not a specialist though).

unittests/atcoretests.cpp
61

Same here

rizzitello marked 4 inline comments as done.Jan 2 2019, 7:42 PM
rizzitello updated this revision to Diff 48565.Jan 2 2019, 7:44 PM
  • Revert change to Auto-Detect
  • Better method to trigger firmware Check
rizzitello updated this revision to Diff 48566.Jan 2 2019, 8:01 PM
  • update Doxygen entry
  • check plugin list instead of looking for "Autodetect"
laysrodrigues requested changes to this revision.Jan 2 2019, 8:57 PM
laysrodrigues added inline comments.
testclient/mainwindow.cpp
557

you could move this to a function and pass a bool to it to set those enablers

This revision now requires changes to proceed.Jan 2 2019, 8:57 PM
rizzitello updated this revision to Diff 48573.Jan 2 2019, 9:10 PM
rizzitello marked an inline comment as done.
  • lays' Suggestion to move enablers to their own function
yurchor added inline comments.Jan 2 2019, 9:36 PM
src/core/atcore.h
148

Doxygen complains that "fwPlugin" is an unknown variable which seems to be right when looking into line 153.

tcanabrava added inline comments.Jan 2 2019, 9:42 PM
src/core/atcore.cpp
233

Invert the ir clause, return early, remove else

rizzitello updated this revision to Diff 48575.Jan 2 2019, 9:53 PM
rizzitello marked 2 inline comments as done.
  • Fix Yuri's catch of wrong variable name in doxygen comment
  • Honor Tomaz' request to invert logic in waitForPrinterReboot
rizzitello updated this revision to Diff 48597.Jan 3 2019, 2:20 PM
  • Add missing emit
yurchor added inline comments.Jan 3 2019, 5:37 PM
src/core/atcore.h
543

It's a very minor problem (and not yours, but all AtCore Doxygen docs) but comma lists without spaces look a bit ugly.


Is it possible to add a space after the comma in the final iteration? Thanks.

rizzitello updated this revision to Diff 48647.Jan 3 2019, 10:15 PM
  • spaces after ',' in docs
rizzitello marked an inline comment as done.Jan 3 2019, 10:16 PM
rizzitello added inline comments.
src/core/atcore.h
543

I fixed it for the whole file. Thanks for the catch

rizzitello marked an inline comment as done.Jan 4 2019, 2:23 PM
laysrodrigues accepted this revision.Jan 5 2019, 5:22 PM
This revision is now accepted and ready to land.Jan 5 2019, 5:22 PM
tcanabrava accepted this revision.Jan 5 2019, 5:23 PM
rizzitello closed this revision.Jan 5 2019, 5:33 PM