Skip to content

Commit 70c6063

Browse files
committed
Revert changes from previous commit
1 parent 4c2d187 commit 70c6063

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

display/i2c_interface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static machine_status_packet_t status_packet, prev_status = {0};
6969

7070
static void send_status_info (void *data)
7171
{
72-
uint_fast8_t idx = N_AXIS; //min(4, N_AXIS);
72+
uint_fast8_t idx = min(4, N_AXIS);
7373

7474
system_convert_array_steps_to_mpos(status_packet.coordinate.values, sys.position);
7575

@@ -98,7 +98,7 @@ static void send_status_info (void *data)
9898

9999
status_packet.feed_rate = st_get_realtime_rate();
100100

101-
if(true) {//msgtype || memcmp(&prev_status, &status_packet, offsetof(machine_status_packet_t, msgtype))) {
101+
if(msgtype || memcmp(&prev_status, &status_packet, offsetof(machine_status_packet_t, msgtype))) {
102102

103103
size_t len = ((status_packet.msgtype = msgtype)) ? offsetof(machine_status_packet_t, msg) : offsetof(machine_status_packet_t, msgtype);
104104

0 commit comments

Comments
 (0)