Use C++ language supported 'nullptr' (#13944)
This commit is contained in:
@ -205,7 +205,7 @@ float measuring_movement(const AxisEnum axis, const int dir, const bool stop_sta
|
||||
* axis in - Axis along which the measurement will take place
|
||||
* dir in - Direction along that axis (-1 or 1)
|
||||
* stop_state in - Move until probe pin becomes this value
|
||||
* backlash_ptr in/out - When not NULL, measure and record axis backlash
|
||||
* backlash_ptr in/out - When not nullptr, measure and record axis backlash
|
||||
* uncertainty in - If uncertainty is CALIBRATION_MEASUREMENT_UNKNOWN, do a fast probe.
|
||||
*/
|
||||
inline float measure(const AxisEnum axis, const int dir, const bool stop_state, float * const backlash_ptr, const float uncertainty) {
|
||||
|
@ -194,7 +194,7 @@ inline int check_for_free_memory_corruption(PGM_P const title) {
|
||||
}
|
||||
SERIAL_ECHOPAIR(" block_found=", block_cnt);
|
||||
|
||||
if (block_cnt != 1 || __brkval != NULL)
|
||||
if (block_cnt != 1 || __brkval != nullptr)
|
||||
SERIAL_ECHOLNPGM("\nMemory Corruption detected in free memory area.");
|
||||
|
||||
if (block_cnt == 0) // Make sure the special case of no free blocks shows up as an
|
||||
@ -217,7 +217,7 @@ inline int check_for_free_memory_corruption(PGM_P const title) {
|
||||
*/
|
||||
inline void free_memory_pool_report(char * const ptr, const int32_t size) {
|
||||
int32_t max_cnt = -1, block_cnt = 0;
|
||||
char *max_addr = NULL;
|
||||
char *max_addr = nullptr;
|
||||
// Find the longest block of test bytes in the buffer
|
||||
for (int32_t i = 0; i < size; i++) {
|
||||
char *addr = ptr + i;
|
||||
|
Reference in New Issue
Block a user