Magic numbers are bad...

This commit is contained in:
VintagePC 2022-07-19 20:08:19 -04:00 committed by D.R.racer
parent 69c39e2281
commit ba52430e1d
2 changed files with 3 additions and 1 deletions

View File

@ -244,7 +244,7 @@ bool MMU2::RetryIfPossible(uint16_t ec){
void MMU2::ResetRetryAttempts(){
SERIAL_ECHOLNPGM("ResetRetryAttempts");
retryAttempts = 3;
retryAttempts = MAX_RETRIES;
}
void MMU2::DecrementRetryAttempts(){

View File

@ -6,6 +6,8 @@ struct E_Step;
namespace MMU2 {
static constexpr uint8_t MAX_RETRIES = 3U;
/// @@TODO hmmm, 12 bytes... may be we can reduce that
struct xyz_pos_t {
float xyz[3];