Merge pull request #549 from keyboardio/plugin/CycleTimeReport/newline-fix

CycleTimeReport: Send a newline after the default report
pull/541/head
Jesse Vincent 6 years ago committed by GitHub
commit bf91a0e2c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,7 +56,8 @@ EventHandlerResult CycleTimeReport::afterEachCycle() {
} }
__attribute__((weak)) void cycleTimeReport(void) { __attribute__((weak)) void cycleTimeReport(void) {
Focus.send(Focus.COMMENT, F("average loop time:"), CycleTimeReport.average_loop_time); Focus.send(Focus.COMMENT, F("average loop time:"), CycleTimeReport.average_loop_time,
Focus.NEWLINE);
} }
kaleidoscope::plugin::CycleTimeReport CycleTimeReport; kaleidoscope::plugin::CycleTimeReport CycleTimeReport;

@ -82,6 +82,7 @@ class FocusSerial : public kaleidoscope::Plugin {
static constexpr char COMMENT = '#'; static constexpr char COMMENT = '#';
static constexpr char SEPARATOR = ' '; static constexpr char SEPARATOR = ' ';
static constexpr char NEWLINE = '\n';
/* Hooks */ /* Hooks */
EventHandlerResult beforeReportingState(); EventHandlerResult beforeReportingState();

Loading…
Cancel
Save