command.c: Simplify usage of serial_no serial number string.
This commit is contained in:
parent
966ac4036d
commit
f3790b90e5
|
@ -357,11 +357,7 @@ static bool cmd_target_power(target *t, int argc, const char **argv)
|
|||
#ifdef PLATFORM_HAS_TRACESWO
|
||||
static bool cmd_traceswo(target *t, int argc, const char **argv)
|
||||
{
|
||||
#if defined(STM32L0) || defined(STM32F3) || defined(STM32F4)
|
||||
extern char serial_no[13];
|
||||
#else
|
||||
extern char serial_no[9];
|
||||
#endif
|
||||
extern char *serial_no;
|
||||
(void)t;
|
||||
#if TRACESWO_PROTOCOL == 2
|
||||
uint32_t baudrate = SWO_DEFAULT_BAUD;
|
||||
|
|
Loading…
Reference in New Issue