Skip to content

Commit df3e3b2

Browse files
committed
Fix scope of the serial variable.
1 parent daa135a commit df3e3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/frameworks/greentea-client/source/test_env.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void greentea_notify_version();
6262
* between the target and the host.
6363
*/
6464
RawSerial& greentea_serial() {
65-
RawSerial serial(USBTX, USBRX);
65+
static RawSerial serial(USBTX, USBRX);
6666
return serial;
6767
}
6868

0 commit comments

Comments
 (0)