ArduinoShell icon indicating copy to clipboard operation
ArduinoShell copied to clipboard

Writing single-byte causes 4-byte little-endian write by mistake.

Open nuket opened this issue 9 years ago • 1 comments

wb 0x00 1 causes four bytes to be written instead of just one.

nuket avatar Jan 10 '16 23:01 nuket

Arduino Shell
Copyright (c) 2015 Max Vilimpoc (https://github.com/nuket/arduino-shell), MIT licensed.

ADC Pin Shell commands:
    adc aref <reference>
    adc read <n>

Config Shell commands:
    config print
    config save

Digital Pin Shell commands:
    pin <n> in
    pin <n> in_pullup
    pin <n> high
    pin <n> low
    pin <n> status
    pin <n> reset

EEPROM Shell commands:
    p
    p <address>
    p <address> <rows>
    wb <address> <byte-value> -- writes the byte-value to the address

p
0000 | 47 46 4E 43 88 69 00 00 00 00 00 00 00 00 00 00 | GFNC.i..........      
0010 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0030 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0040 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0050 | 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 | ................      
0060 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0070 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0080 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0090 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00A0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00B0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00C0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00D0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00E0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00F0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0100 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0110 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0120 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0130 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0140 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0150 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0160 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0170 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0180 | 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF | ................      
0190 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01A0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01B0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01C0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01D0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01E0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01F0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0200 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0210 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0220 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0230 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0240 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0250 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0260 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0270 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0280 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0290 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02A0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02B0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02C0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02D0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02E0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02F0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0300 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0310 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0320 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0330 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0340 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0350 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0360 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0370 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0380 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0390 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03A0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03B0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03C0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03D0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03E0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03F0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
wb 0x3f0 0xaa
03F0 | AA 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF | ................      
p
0000 | 47 46 4E 43 88 69 00 00 00 00 00 00 00 00 00 00 | GFNC.i..........      
0010 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0030 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0040 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0050 | 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 | ................      
0060 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0070 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0080 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0090 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00A0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00B0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00C0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00D0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00E0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
00F0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0100 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0110 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0120 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0130 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0140 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0150 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0160 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0170 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................      
0180 | 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF | ................      
0190 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01A0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01B0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01C0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01D0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01E0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
01F0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0200 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0210 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0220 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0230 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0240 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0250 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0260 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0270 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0280 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0290 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02A0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02B0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02C0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02D0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02E0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
02F0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0300 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0310 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0320 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0330 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0340 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0350 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0360 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0370 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0380 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
0390 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03A0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03B0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03C0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03D0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03E0 | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................      
03F0 | AA 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF | ................      

nuket avatar Feb 06 '16 19:02 nuket