Cleanup unused anycubic related code
This commit is contained in:
@@ -312,33 +312,6 @@ HardwareSerialClass::operator bool()
|
|||||||
HardwareSerialClass HardwareSerial(&rx_buffer_ajg, &tx_buffer_ajg, &UBRR3H, &UBRR3L, &UCSR3A, &UCSR3B, &UCSR3C, &UDR3, RXEN3, TXEN3, RXCIE3, UDRIE3, U2X3);
|
HardwareSerialClass HardwareSerial(&rx_buffer_ajg, &tx_buffer_ajg, &UBRR3H, &UBRR3L, &UCSR3A, &UCSR3B, &UCSR3C, &UDR3, RXEN3, TXEN3, RXCIE3, UDRIE3, U2X3);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void Newok_to_send() {
|
|
||||||
previous_cmd_ms = millis();
|
|
||||||
/*
|
|
||||||
if (!send_ok[cmd_queue_index_r]) return;
|
|
||||||
// SERIAL_PROTOCOLPGM(MSG_OK);
|
|
||||||
#if ENABLED(ADVANCED_OK)
|
|
||||||
char* p = command_queue[cmd_queue_index_r];
|
|
||||||
if (*p == 'N') {
|
|
||||||
SERIAL_PROTOCOL(' ');
|
|
||||||
SERIAL_ECHO(*p++);
|
|
||||||
while (NUMERIC_SIGNED(*p))
|
|
||||||
SERIAL_ECHO(*p++);
|
|
||||||
}
|
|
||||||
SERIAL_PROTOCOLPGM(" P"); SERIAL_PROTOCOL(int(BLOCK_BUFFER_SIZE - planner.movesplanned() - 1));
|
|
||||||
SERIAL_PROTOCOLPGM(" B"); SERIAL_PROTOCOL(BUFSIZE - commands_in_queue);
|
|
||||||
#endif
|
|
||||||
SERIAL_EOL;
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
void NEWFlushSerialRequestResend() {
|
|
||||||
//char command_queue[cmd_queue_index_r][100]="Resend:";
|
|
||||||
HardwareSerial.flush();
|
|
||||||
// SERIAL_PROTOCOLPGM(MSG_RESEND);
|
|
||||||
// SERIAL_PROTOCOLLN(gcode_LastN + 1);
|
|
||||||
Newok_to_send();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // whole file
|
#endif // whole file
|
||||||
|
@@ -141,7 +141,4 @@ FORCE_INLINE void HardwareSerialprintPGM(const char *str)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NEWFlushSerialRequestResend();
|
|
||||||
void NEWClearToSend();
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1076,10 +1076,7 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
|
|||||||
if( (int)(strtod(&TFTcmdbuffer[TFTbufindw][TFTstrchr_pointer - TFTcmdbuffer[TFTbufindw] + 1], NULL)) != checksum)
|
if( (int)(strtod(&TFTcmdbuffer[TFTbufindw][TFTstrchr_pointer - TFTcmdbuffer[TFTbufindw] + 1], NULL)) != checksum)
|
||||||
{
|
{
|
||||||
HARDWARE_SERIAL_ERROR_START;
|
HARDWARE_SERIAL_ERROR_START;
|
||||||
NEWFlushSerialRequestResend();
|
HardwareSerial.flush();
|
||||||
|
|
||||||
HARDWARE_SERIAL_ERROR_START;
|
|
||||||
NEWFlushSerialRequestResend();
|
|
||||||
serial3_count = 0;
|
serial3_count = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1088,7 +1085,7 @@ void AnycubicTouchscreenClass::GetCommandFromTFT()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
HARDWARE_SERIAL_ERROR_START;
|
HARDWARE_SERIAL_ERROR_START;
|
||||||
NEWFlushSerialRequestResend();
|
HardwareSerial.flush();
|
||||||
serial3_count = 0;
|
serial3_count = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user