From bb3cf10a09f2407791ee57335891b75e4b85ed70 Mon Sep 17 00:00:00 2001 From: Luke Wren Date: Tue, 26 Jan 2021 14:35:26 +0000 Subject: [PATCH] Use correct define for FLASH_RUID_CMD --- src/rp2_common/hardware_flash/flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp2_common/hardware_flash/flash.c b/src/rp2_common/hardware_flash/flash.c index dfab95b..c21505b 100644 --- a/src/rp2_common/hardware_flash/flash.c +++ b/src/rp2_common/hardware_flash/flash.c @@ -171,7 +171,7 @@ void flash_get_unique_id(uint8_t *id_out) { #else uint8_t txbuf[FLASH_RUID_TOTAL_BYTES] = {0}; uint8_t rxbuf[FLASH_RUID_TOTAL_BYTES] = {0}; - txbuf[0] = 0x4b; + txbuf[0] = FLASH_RUID_CMD; flash_do_cmd(txbuf, rxbuf, FLASH_RUID_TOTAL_BYTES); for (int i = 0; i < FLASH_RUID_DATA_BYTES; i++) id_out[i] = rxbuf[i + 1 + FLASH_RUID_DUMMY_BYTES];