File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
24
24
#if DEVICE_DEVICEUID
25
25
26
- #ifndef MBED_DEVICEUID_SIZE
27
- #error "DEVICE UID Vendor implementation must define macro MBED_DEVICEUID_SIZE with the uid size in bytes!"
26
+ #if !defined( MBED_DEVICEUID_SIZE ) || ( MBED_DEVICEUID_SIZE == 0 )
27
+ #error "DEVICE UID Vendor implementation must define macro MBED_DEVICEUID_SIZE with the non-zero uid size in bytes!"
28
28
#endif
29
29
30
- #ifndef MBED_DEVICEUID_STR_SIZE_MAX
31
- #warning "DEVICE UID max vendor string length not defined! device_uid_get_str() HAL interface is disabled!"
30
+ #if !defined( MBED_DEVICEUID_STR_SIZE_MAX ) || ( MBED_DEVICEUID_STR_SIZE_MAX == 0 )
31
+ #warning "DEVICE UID max vendor string length not defined or zero ! device_uid_get_str() HAL interface is disabled!"
32
32
#endif
33
33
34
34
#ifdef __cplusplus
You can’t perform that action at this time.
0 commit comments