flash/at91samd: use COMMAND_PARSE_NUMBER in command handlers
commitdd0ee1fa5b88a4e5015aae6d9527e97bec7f5bc5
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Thu, 29 Jul 2021 22:47:07 +0000 (29 23:47 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 22 Aug 2021 13:15:24 +0000 (22 13:15 +0000)
treef818599149b85d331e3d2413d02c4f48df04d57d
parent277b0a5d9770fcf12a6b630df5ffc26f242edf80
flash/at91samd: use COMMAND_PARSE_NUMBER in command handlers

the usage of COMMAND_PARSE_NUMBER is safer in COMMAND_HANDLERs since it provides
better error checking than strto** functions.

Change-Id: I14061cb48da6bac13f9d2896190136f5784b8c07
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6424
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/nor/at91samd.c