m992 report only when printing

This commit is contained in:
Sergey
2021-12-02 18:06:23 +03:00
parent 739d1fede4
commit b0e1754158

View File

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