Fix missing (hex) in D5 code (#2560)

* Fix missing (hex) in D5 code

* Make ALL D-codes available for DEBUG mode
until now D3 and D5 needed to be defined separately

* Forgot to modify Marlin_main
This commit is contained in:
3d-gussner 2020-04-02 14:56:19 +02:00 committed by GitHub
parent 0fbd3909cd
commit a1b8ee67b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -98,7 +98,7 @@ void print_mem(uint32_t address, uint16_t count, uint8_t type, uint8_t countperl
} }
} }
#ifdef DEBUG_DCODE3 #if defined DEBUG_DCODE3 || defined DEBUG_DCODES
#define EEPROM_SIZE 0x1000 #define EEPROM_SIZE 0x1000
/*! /*!
### D3 - Read/Write EEPROM <a href="https://reprap.org/wiki/G-code#D3:_Read.2FWrite_EEPROM">D3: Read/Write EEPROM</a> ### D3 - Read/Write EEPROM <a href="https://reprap.org/wiki/G-code#D3:_Read.2FWrite_EEPROM">D3: Read/Write EEPROM</a>
@ -360,7 +360,7 @@ void dcode_4()
} }
#endif //DEBUG_DCODES #endif //DEBUG_DCODES
#ifdef DEBUG_DCODE5 #if defined DEBUG_DCODE5 || defined DEBUG_DCODES
/*! /*!
### D5 - Read/Write FLASH <a href="https://reprap.org/wiki/G-code#D5:_Read.2FWrite_FLASH">D5: Read/Write Flash</a> ### D5 - Read/Write FLASH <a href="https://reprap.org/wiki/G-code#D5:_Read.2FWrite_FLASH">D5: Read/Write Flash</a>
@ -372,7 +372,7 @@ void dcode_4()
#### Parameters #### Parameters
- `A` - Address (x00000-x3ffff) - `A` - Address (x00000-x3ffff)
- `C` - Count (1-8192) - `C` - Count (1-8192)
- `X` - Data - `X` - Data (hex)
- `E` - Erase - `E` - Erase
#### Notes #### Notes

View File

@ -8835,7 +8835,7 @@ Sigma_Exit:
case 2: case 2:
dcode_2(); break; dcode_2(); break;
#endif //DEBUG_DCODES #endif //DEBUG_DCODES
#ifdef DEBUG_DCODE3 #if defined DEBUG_DCODE3 || defined DEBUG_DCODES
/*! /*!
### D3 - Read/Write EEPROM <a href="https://reprap.org/wiki/G-code#D3:_Read.2FWrite_EEPROM">D3: Read/Write EEPROM</a> ### D3 - Read/Write EEPROM <a href="https://reprap.org/wiki/G-code#D3:_Read.2FWrite_EEPROM">D3: Read/Write EEPROM</a>
@ -8876,7 +8876,7 @@ Sigma_Exit:
case 4: case 4:
dcode_4(); break; dcode_4(); break;
#endif //DEBUG_DCODES #endif //DEBUG_DCODES
#ifdef DEBUG_DCODE5 #if defined DEBUG_DCODE5 || defined DEBUG_DCODES
/*! /*!
### D5 - Read/Write FLASH <a href="https://reprap.org/wiki/G-code#D5:_Read.2FWrite_FLASH">D5: Read/Write Flash</a> ### D5 - Read/Write FLASH <a href="https://reprap.org/wiki/G-code#D5:_Read.2FWrite_FLASH">D5: Read/Write Flash</a>
@ -8888,7 +8888,7 @@ Sigma_Exit:
#### Parameters #### Parameters
- `A` - Address (x00000-x3ffff) - `A` - Address (x00000-x3ffff)
- `C` - Count (1-8192) - `C` - Count (1-8192)
- `X` - Data - `X` - Data (hex)
- `E` - Erase - `E` - Erase
#### Notes #### Notes