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 committed 2024-01-24 16:36:52 +01:00
1 parent ab0c46a22b
commit 1d14bc38c5
4 files changed
+4 -4

No files matched your search

+1 -1
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;