Commit 2f7d34a
committed
Replace assert() by Error_Handler()
Avoid to include "assert.h" which relies on printf().
This allow to save space:
Example for CardInfo.ino sketche for the same target:
- with assert:
Sketch uses 35308 bytes (6%) of program storage space. Maximum is 524288 bytes.
Global variables use 2384 bytes (1%) of dynamic memory, leaving 128688 bytes for local variables. Maximum is 131072 bytes.
- without assert:
Sketch uses 31844 bytes (6%) of program storage space. Maximum is 524288 bytes.
Global variables use 2284 bytes (1%) of dynamic memory, leaving 128788 bytes for local variables. Maximum is 131072 bytes.
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>1 parent 3703061 commit 2f7d34a
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
186 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| |||
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
| |||
578 | 583 | | |
579 | 584 | | |
580 | 585 | | |
581 | | - | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
582 | 589 | | |
583 | 590 | | |
584 | 591 | | |
| |||
0 commit comments