mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
Move define to str macro in nanovna.h (it allow output define valuer in error messages)
This commit is contained in:
parent
45dfd7d970
commit
fdb3886b0f
|
|
@ -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*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue