Skip to content

Commit a86c4c3

Browse files
pan-adbridge
authored andcommitted
Fix scope of the serial variable.
1 parent 6bd43b1 commit a86c4c3

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)