Commit d1d5b40
committed
esp32_flash: fix crash when -b/--baud is given
The legacy (non-namespaced) esp32_flash task typed baud as a string
in its option spec while the atomvm-namespaced provider it delegates
to types it as an integer; any explicit -b through the legacy task
reached do_flash as a string and crashed integer_to_list/1 with
badarg. Type the legacy option as integer, and also normalize baud
in get_opts so string values from rebar.config keep working.
Signed-off-by: Paul Guyot <pguyot@kallisys.net>1 parent 9022349 commit d1d5b40
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments