changed warnings in device_uid_api.h to be thrown also when size or str_size_max are zero

pull/5557/head
Michael Kaplan 2018-01-15 12:44:43 +01:00
parent 741d229617
commit a5e98686fc
1 changed files with 4 additions and 4 deletions

View File

@ -23,12 +23,12 @@
#if DEVICE_DEVICEUID #if DEVICE_DEVICEUID
#ifndef MBED_DEVICEUID_SIZE #if !defined(MBED_DEVICEUID_SIZE) || (MBED_DEVICEUID_SIZE == 0)
#error "DEVICE UID Vendor implementation must define macro MBED_DEVICEUID_SIZE with the uid size in bytes!" #error "DEVICE UID Vendor implementation must define macro MBED_DEVICEUID_SIZE with the non-zero uid size in bytes!"
#endif #endif
#ifndef MBED_DEVICEUID_STR_SIZE_MAX #if !defined(MBED_DEVICEUID_STR_SIZE_MAX) || (MBED_DEVICEUID_STR_SIZE_MAX == 0)
#warning "DEVICE UID max vendor string length not defined! device_uid_get_str() HAL interface is disabled!" #warning "DEVICE UID max vendor string length not defined or zero! device_uid_get_str() HAL interface is disabled!"
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus