[PATCH 0/2] Allow decimally formatted data for the commands "i2c_write" and "spi"

Ulrich Ölmann u.oelmann at pengutronix.de
Tue Oct 17 06:16:23 PDT 2017


Currently both commands set the default base for parsing user supplied data to
16 which makes it impossible at all to parse decimal data.

Presumably this originates from having the convenience to easily copy'n'paste
hex dumped data into these commands without further preprocessing it before.

Change the default base to 0 to particularly allow decimally formatted data.
This is in accordance to what the "mw" command does.

Ulrich Ölmann (2):
  commands: i2c: do not restrict i2c_write's data to be hex-formatted
  commands: spi: do not restrict spi's data to be hex-formatted

 commands/i2c.c | 2 +-
 commands/spi.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.11.0




More information about the barebox mailing list