mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 09:08:06 +00:00
hci_dump: fix compile for AVR
This commit is contained in:
parent
e6d6524d17
commit
560d2a7afb
@ -111,7 +111,7 @@ void hci_dump_log_P(int log_level, PGM_P format, ...){
|
||||
|
||||
va_list argptr;
|
||||
va_start(argptr, format);
|
||||
(*hci_dump_impl->log_packet_P)(format, argptr);
|
||||
(*hci_dump_impl->log_message_P)(format, argptr);
|
||||
va_end(argptr);
|
||||
}
|
||||
#endif
|
||||
|
@ -82,7 +82,7 @@ typedef struct {
|
||||
void (*log_message)(const char * format, va_list argptr);
|
||||
#ifdef __AVR__ \
|
||||
// log message - AVR
|
||||
void (*log_message_P)(int log_level, PGM_P * format, va_list argptr);
|
||||
void (*log_message_P)(PGM_P * format, va_list argptr);
|
||||
#endif
|
||||
} hci_dump_t;
|
||||
|
||||
@ -134,10 +134,11 @@ __attribute__ ((format (__printf__, 2, 3)))
|
||||
* @param log_level
|
||||
* @param format
|
||||
*/
|
||||
void hci_dump_log_P(int log_level, PGM_P format, ...);
|
||||
void hci_dump_log_P(int log_level, PGM_P format, ...)
|
||||
#ifdef __GNUC__
|
||||
__attribute__ ((format (__printf__, 2, 3)))
|
||||
#endif
|
||||
;
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user