diff --git a/firmware/common/device_info.h b/firmware/common/device_info.h index 3de6c22..da8a245 100644 --- a/firmware/common/device_info.h +++ b/firmware/common/device_info.h @@ -9,7 +9,7 @@ #define DEVICE_NAME_STR "ChameleonLite" #define DEVICE_NAME_STR_SHORT "CL" #else -#error "Unknown device name?" +#error No device defined #endif diff --git a/firmware/common/hw_connect.c b/firmware/common/hw_connect.c index 06a24e4..bb86bd5 100644 --- a/firmware/common/hw_connect.c +++ b/firmware/common/hw_connect.c @@ -9,7 +9,7 @@ const static chameleon_device_type_t m_device_type = #elif defined(PROJECT_CHAMELEON_LITE) CHAMELEON_LITE; #else - "No device define before project build."; +#error No device defined #endif char g_extern_product_str[sizeof(DEVICE_NAME_STR) + sizeof(": hw_v255, fw_v65535") + 1];