Rename CMD_READ_MEM_DOWNLOAD flag.

It got included in pm3_cmd.lua but shouldn't be because it's not a command.
Also, the bitshift in the value upsets some versions of lua.
This commit is contained in:
Martijn Plak 2024-01-24 16:32:46 +01:00
commit 1d14bc38c5
4 changed files with 4 additions and 4 deletions

View file

@ -169,7 +169,7 @@ static void UsbPacketReceived(uint8_t *packet) {
bool isok = true;
uint8_t *base = NULL;
bool raw_address_mode = (flags & CMD_READ_MEM_DOWNLOAD_RAW) != 0;
bool raw_address_mode = (flags & READ_MEM_DOWNLOAD_FLAG_RAW) != 0;
if (!raw_address_mode) {
base = (uint8_t *) _flash_start;