Move define to str macro in nanovna.h (it allow output define valuer in error messages)

This commit is contained in:
DiSlord 2020-03-14 16:50:35 +03:00
parent 45dfd7d970
commit fdb3886b0f

View file

@ -490,4 +490,7 @@ int plot_printf(char *str, int, const char *fmt, ...);
// Speed profile definition
#define START_PROFILE systime_t time = chVTGetSystemTimeX();
#define STOP_PROFILE {char string_buf[12];plot_printf(string_buf, sizeof string_buf, "T:%06d", chVTGetSystemTimeX() - time);ili9341_drawstringV(string_buf, 1, 60);}
// Macros for convert define value to string
#define STR1(x) #x
#define define_to_STR(x) STR1(x)
/*EOF*/