Magic numbers are bad...
This commit is contained in:
parent
69c39e2281
commit
ba52430e1d
|
|
@ -244,7 +244,7 @@ bool MMU2::RetryIfPossible(uint16_t ec){
|
|||
|
||||
void MMU2::ResetRetryAttempts(){
|
||||
SERIAL_ECHOLNPGM("ResetRetryAttempts");
|
||||
retryAttempts = 3;
|
||||
retryAttempts = MAX_RETRIES;
|
||||
}
|
||||
|
||||
void MMU2::DecrementRetryAttempts(){
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue