Skip to content

Commit

Permalink
Use PSTR_ALIGN for flash strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nomis committed Nov 3, 2022
1 parent 5a895bb commit a658c64
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/changelog.rst
Expand Up @@ -4,6 +4,11 @@ Change log
Unreleased_
-----------

Changed
~~~~~~~

* Use ``PSTR_ALIGN`` for flash strings.

0.1.4_ |--| 2022-10-29
----------------------

Expand Down
6 changes: 5 additions & 1 deletion src/telnet.cpp
Expand Up @@ -58,7 +58,11 @@
# endif
#endif

static const char __pstr__logger_name[] __attribute__((__aligned__(sizeof(int)))) PROGMEM = "telnet";
#ifndef PSTR_ALIGN
# define PSTR_ALIGN 4
#endif

static const char __pstr__logger_name[] __attribute__((__aligned__(PSTR_ALIGN))) PROGMEM = "telnet";

namespace uuid {

Expand Down

0 comments on commit a658c64

Please sign in to comment.