logger: handle 'char' type in messages

Fixes errors like:
ERROR [logger] No definition for topic char[10] key;uint8_t[2] _padding0; found
when the Debug logging profile is selected.
This commit is contained in:
Beat Küng 2019-07-03 10:00:50 +02:00
parent fecb32f88d
commit a2471fb539
1 changed files with 2 additions and 1 deletions

View File

@ -1889,7 +1889,8 @@ void Logger::write_format(LogType type, const orb_metadata &meta, WrittenFormats
strcmp(type_name, "uint64_t") != 0 &&
strcmp(type_name, "float") != 0 &&
strcmp(type_name, "double") != 0 &&
strcmp(type_name, "bool") != 0) {
strcmp(type_name, "bool") != 0 &&
strcmp(type_name, "char") != 0) {
// find orb meta for type
const orb_metadata *const *topics = orb_get_topics();