Browse Source

Provide strcmp_P where needed (#18103)

vanilla_fb_2.0.x
ellensp 5 years ago
committed by GitHub
parent
commit
9bfdc88e52
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      Marlin/src/HAL/LINUX/HAL.h
  2. 5
      Marlin/src/HAL/LPC1768/HAL.h

5
Marlin/src/HAL/LINUX/HAL.h

@ -106,3 +106,8 @@ inline uint8_t HAL_get_reset_source(void) { return RST_POWER_ON; }
FORCE_INLINE static void DELAY_CYCLES(uint64_t x) {
Clock::delayCycles(x);
}
// Add strcmp_P if missing
#ifndef strcmp_P
#define strcmp_P(a, b) strcmp((a), (b))
#endif

5
Marlin/src/HAL/LPC1768/HAL.h

@ -221,3 +221,8 @@ void set_pwm_duty(const pin_t pin, const uint16_t v, const uint16_t v_size=255,
// Reset source
void HAL_clear_reset_source(void);
uint8_t HAL_get_reset_source(void);
// Add strcmp_P if missing
#ifndef strcmp_P
#define strcmp_P(a, b) strcmp((a), (b))
#endif

Loading…
Cancel
Save