Skip to content

Commit

Permalink
I2C display interface, issue #9 - missing update to match core chang…
Browse files Browse the repository at this point in the history
…es causes compilation failure.
  • Loading branch information
terjeio committed Jan 19, 2024
1 parent 6c48174 commit af48994
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions display/i2c_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#ifdef ARDUINO
#include "../../grbl/plugins.h"
#include "../../grbl/protocol.h"
#include "../../grbl/state_machine.h"
#else
#include "grbl/plugins.h"
#include "grbl/protocol.h"
Expand Down Expand Up @@ -356,7 +357,7 @@ static void add_reports (report_tracking_flags_t report)

if(report.spindle) {
spindle_ptrs_t *spindle = spindle_get(0);
status_packet.spindle_state = spindle->get_state();
status_packet.spindle_state = spindle->get_state(spindle);
}

if(report.overrides) {
Expand Down Expand Up @@ -412,7 +413,7 @@ static void onReportOptions (bool newopt)
on_report_options(newopt);

if(!newopt)
hal.stream.write(connected ? "[PLUGIN:I2C Display v0.08]" ASCII_EOL : "[PLUGIN:I2C Display v0.08 (not connected)]" ASCII_EOL);
hal.stream.write(connected ? "[PLUGIN:I2C Display v0.09]" ASCII_EOL : "[PLUGIN:I2C Display v0.09 (not connected)]" ASCII_EOL);
}

static void complete_setup (sys_state_t state)
Expand Down

0 comments on commit af48994

Please sign in to comment.