The unified diff between revisions [08a35a66..] and [dc88787e..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'log.c'
# # old_revision [08a35a6680cdf8985cfb16fa6779ee6db7202a9c] # new_revision [dc88787ecd1d574feba045763baed2a7651ff33d] # # patch "log.c" # from [701a380256c80af1612dd9b69ef428e3e6155e3d] # to [3d31d11d1862fd3e0f41a90b8b6c96c71298be66] # ============================================================ --- log.c 701a380256c80af1612dd9b69ef428e3e6155e3d +++ log.c 3d31d11d1862fd3e0f41a90b8b6c96c71298be66 @@ -5,6 +5,7 @@ #include "uart.h" #include "timer.h" #include "log.h" +#include "config.h" /* This is shared with sdcard.c */ bool log_enabled; @@ -37,7 +38,9 @@ void log_put_byte(char c) * Better than overrunning. */ if (((log_bufferend + 1) % LOG_BUFFERSIZE) == log_bufferstart) { +#if 0 putstr("^"); +#endif return; } log_buffer[log_bufferend++] = c; @@ -70,6 +73,14 @@ void log_put_header(unsigned int timesta log_put_uint(log_read_busytime()); } +void log_put_config(void) +{ + log_put_uint(LOG_MAGIC_CONFIG); + log_put_uint(CONFIG_VERSION); + log_put_uint(sizeof(struct config)); + log_put_array((char *)&config, sizeof(struct config)); +} + void log_put_array(char *data, int length) { int i;