diff --git a/dcc/dn_dcc_proto.h b/dcc/dn_dcc_proto.h index 1774ddf..782cf3a 100644 --- a/dcc/dn_dcc_proto.h +++ b/dcc/dn_dcc_proto.h @@ -114,16 +114,16 @@ typedef struct { #define DCC_READ_ERROR 0x28 // Read error #define DCC_W_ASSERT_ERROR 0x2A // Ready flag timeout during write #define DCC_E_ASSERT_ERROR 0x2B // Ready flag timeout during erase -#define DCC_ROFS_ERROR 0x2D // Cannot write to read-only memory +#define DCC_WPROT_ERROR 0x2D // Cannot write to read only memory #define DCC_E_UNK_ERROR 0x2E // Unknown erase error, Please file a bug report #define DCC_WUPROT_TIMEOUT 0x2F // Write unprotect timeout -#define DCC_WUPROT_ERROR 0x30 // Write unprotect failed, Attempted to write unprotect the block but still write protected afterwards. +#define DCC_WUPROT_ERROR 0x30 // Write unprotect error #define DCC_W_UNK_ERROR 0x31 // Unknown write error, Please file a bug report #define DCC_UNK_ERROR 0x32 // Unknown error, may happen if the flash is not completely initialized. #define DCC_FLASH_NOENT 0x37 // Flash with this ID is not probed/not found -#define DCC_WPROT_ERROR 0x3C // Read-only memory or Write/Erase routines not implemented +#define DCC_ROFS_ERROR 0x3C // Read-only memory or Write/Erase routines not implemented #define DCC_NOMEM_ERROR 0x3D // Not enough memory -#define DCC_E_INSUFF_DATA 0x3E // Insufficient data +#define DCC_E_INSUFF_DATA 0x3E // Insufficient data is received // Functions // 01 - Compress diff --git a/main.c b/main.c index 4694226..761e893 100644 --- a/main.c +++ b/main.c @@ -241,7 +241,7 @@ void dcc_main(uint32_t StartAddress, uint32_t PageSize) { if (fbFlashIndex < 0x11 && dev_mem[fbFlashIndex - 1].type != MEMTYPE_NONE) { // TODO: Erasing - DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_WPROT_ERROR, fbFlashIndex)); + DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_ROFS_ERROR, fbFlashIndex)); } else { DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_FLASH_NOENT, fbFlashIndex)); } @@ -281,7 +281,7 @@ void dcc_main(uint32_t StartAddress, uint32_t PageSize) { continue; } // TODO: Writing - DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_WPROT_ERROR, fbFlashIndex)); + DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_ROFS_ERROR, fbFlashIndex)); } else { DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_FLASH_NOENT, fbFlashIndex)); }