diff options
Diffstat (limited to 'include/dfu.h')
-rw-r--r-- | include/dfu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h index 68b5ca46ce5..2f42781888a 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -98,7 +98,12 @@ struct virt_internal_data { int dev_num; }; + +#if defined(CONFIG_DFU_NAME_MAX_SIZE) +#define DFU_NAME_SIZE CONFIG_DFU_NAME_MAX_SIZE +#else #define DFU_NAME_SIZE 32 +#endif #ifndef DFU_DEFAULT_POLL_TIMEOUT #define DFU_DEFAULT_POLL_TIMEOUT 0 #endif |