Commit a22bd6b
committed
[HWSerial] Replace assert() by Error_Handler()
Avoid to include "assert.h" which relies on printf().
This allow to save space:
Example for SerialEvent sketch for BluePill:
- with assert:
Sketch uses 16692 bytes (25%) of program storage space. Maximum is 65536 bytes.
Global variables use 1092 bytes (5%) of dynamic memory, leaving 19388 bytes for local variables. Maximum is 20480 bytes.
- without assert:
Sketch uses 12288 bytes (18%) of program storage space. Maximum is 65536 bytes.
Global variables use 984 bytes (4%) of dynamic memory, leaving 19496 bytes for local variables. Maximum is 20480 bytes.
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>1 parent 01d9b09 commit a22bd6b
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
385 | 384 | | |
386 | 385 | | |
387 | 386 | | |
388 | | - | |
| 387 | + | |
389 | 388 | | |
390 | 389 | | |
391 | | - | |
392 | 390 | | |
393 | 391 | | |
394 | 392 | | |
| |||
0 commit comments