Fix scope of the serial variable.

pull/2559/head
Vincent Coubard 2016-08-26 15:34:01 +01:00
parent daa135a1b3
commit df3e3b251d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}