We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4756777 commit e8d8eb0Copy full SHA for e8d8eb0
CHANGELOG.md
@@ -12,9 +12,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
12
### Deprecated
13
14
### Removed
15
-* Unnecessary board changes during unit tests no longer happen
+- Unnecessary board changes during unit tests no longer happen
16
17
### Fixed
18
+- Proper casting for `pgm_read_byte`
19
20
### Security
21
cpp/arduino/avr/pgmspace.h
@@ -42,7 +42,7 @@ out.each { |l| puts d(l) }
42
#define pgm_read_ptr_far(x) (x)
43
44
45
-#define pgm_read_byte(x) (x)
+#define pgm_read_byte(addr) (*(const uint8_t *)(addr))
46
#define pgm_read_word(x) (x)
47
#define pgm_read_dword(x) (x)
48
#define pgm_read_float(x) (x)
0 commit comments