Firmware/cli: check parameters to saveraw command
This commit is contained in:
parent
3db272662c
commit
aef19a2576
@ -294,7 +294,8 @@ static void cmd_loadraw(void) {
|
||||
static void cmd_saveraw(void) {
|
||||
uint32_t address = parse_unsigned(0,16777216,16);
|
||||
uint32_t length = parse_unsigned(0,16777216,16);
|
||||
save_sram((uint8_t*)curchar, length, address);
|
||||
if(address != -1 && length != -1)
|
||||
save_sram((uint8_t*)curchar, length, address);
|
||||
}
|
||||
|
||||
static void cmd_d4(void) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user