Skip to content

Commit f9d078b

Browse files
committed
Remove assert from readValue(), eats RAM.
1 parent 0dfb0d7 commit f9d078b

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/include/FlashString/Utility.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ template <typename T> FSTR_INLINE typename std::enable_if<sizeof(T) == 2, T>::ty
134134

135135
template <typename T> FSTR_INLINE typename std::enable_if<IS_ALIGNED(sizeof(T)), T>::type readValue(const T* ptr)
136136
{
137-
assert(IS_ALIGNED(ptr));
138137
return *static_cast<const T*>(ptr);
139138
}
140139

src/include/FlashString/config.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#pragma once
2323

2424
#include <FakePgmSpace.h>
25-
#include <assert.h>
2625

2726
#define FSTR_INLINE __attribute__((always_inline)) inline
2827
#define FSTR_PACKED __attribute__((packed)) __attribute__((aligned(4)))

0 commit comments

Comments
 (0)