Skip to content

feat: add missing PROGMEM variants in ArduinoCore-API#270

Open
Aymane-ST wants to merge 1 commit intoarduino:masterfrom
Aymane-ST:pr/_Pstdio
Open

feat: add missing PROGMEM variants in ArduinoCore-API#270
Aymane-ST wants to merge 1 commit intoarduino:masterfrom
Aymane-ST:pr/_Pstdio

Conversation

@Aymane-ST
Copy link
Copy Markdown

Summary

Add missing PROGMEM compatibility macros in api/deprecated-avr-comp/avr/pgmspace.h.

Why

Some AVR-targeted libraries and legacy code use printf_P, fprintf_P, vsprintf_P, or vsnprintf_P from pgmspace.h.

Providing these missing aliases improves compatibility in non-AVR environments using the ArduinoCore-API AVR compatibility layer, and reduces the need for local workarounds in portable libraries.

Compatibility

This is an additive compatibility change only:

  • existing behavior is unchanged,
  • no current API is removed or modified,
  • only missing compatibility aliases are introduced.

Add the missing _P macro wrappers such as vfprintf_P, printf_P, vsprintf_P, vsnprintf_P, and fprintf_P

Signed-off-by: Aymane Bahssain <aymane.bahssain@st.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants