mirror of https://github.com/ARMmbed/mbed-os.git
Fix scope of the serial variable.
parent
daa135a1b3
commit
df3e3b251d
|
@ -62,7 +62,7 @@ static void greentea_notify_version();
|
|||
* between the target and the host.
|
||||
*/
|
||||
RawSerial& greentea_serial() {
|
||||
RawSerial serial(USBTX, USBRX);
|
||||
static RawSerial serial(USBTX, USBRX);
|
||||
return serial;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue