Skip to content

Commit 966229d

Browse files
committed
Fix handling of string PVs
1 parent aafaa37 commit 966229d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/connection/pvws.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ function pvwsToDType(data: any): DType {
114114
}
115115

116116
let stringVal = undefined;
117-
if (data.value !== undefined) {
117+
if (data.text !== undefined) {
118+
stringVal = data.text;
119+
} else if (data.value !== undefined) {
118120
stringVal = data.value.toString();
119121
}
120122
return new DType(

0 commit comments

Comments
 (0)