Fix build error in ESP-IDF

Fixes: https://github.com/espressif/arduino-esp32/issues/5562
This commit is contained in:
Me No Dev 2021-08-19 13:54:10 +03:00 committed by GitHub
parent 000d967db3
commit 90c01dab77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ static size_t cplstr(void *dst, const void * src, size_t max_len){
//copy up to max_len chars from src to dst, adding spaces up to max_len. do not terminate //copy up to max_len chars from src to dst, adding spaces up to max_len. do not terminate
static void cplstrsp(void *dst, const void * src, size_t max_len){ static void cplstrsp(void *dst, const void * src, size_t max_len){
size_t l = cplstr(dst, src, max_len); size_t l = cplstr(dst, src, max_len);
for(l; l < max_len; l++){ for(; l < max_len; l++){
((uint8_t*)dst)[l] = 0x20; ((uint8_t*)dst)[l] = 0x20;
} }
} }