Browse Source

m992 report only when printing

FB4S_WIFI
Sergey 3 years ago
parent
commit
b0e1754158
  1. 2
      Marlin/src/module/mks_wifi/mks_wifi_gcodes.cpp

2
Marlin/src/module/mks_wifi/mks_wifi_gcodes.cpp

@ -75,8 +75,10 @@ void mks_m992(void){
uint16_t minutes = (duration_sec - hours*3600) / 60; uint16_t minutes = (duration_sec - hours*3600) / 60;
uint16_t seconds = (duration_sec - hours*3600 - minutes*60); uint16_t seconds = (duration_sec - hours*3600 - minutes*60);
if(CardReader::isPrinting()){
sprintf((char *)buffer, "M992 %02d:%02d:%02d\r\n", hours, minutes, seconds); sprintf((char *)buffer, "M992 %02d:%02d:%02d\r\n", hours, minutes, seconds);
mks_wifi_out_add((uint8_t *)buffer,strlen(buffer)); mks_wifi_out_add((uint8_t *)buffer,strlen(buffer));
};
} }
void mks_m994(void){ void mks_m994(void){

Loading…
Cancel
Save