mirror of
https://github.com/JoelBender/bacpypes
synced 2025-10-27 00:57:47 +08:00
make the str() of a CharacterString more closely match an OctetString because the strValue is an octet string
This commit is contained in:
@@ -824,7 +824,7 @@ class CharacterString(Atomic):
|
||||
self.value = '### unknown encoding: %d ###' % (self.strEncoding,)
|
||||
|
||||
def __str__(self):
|
||||
return "CharacterString(%d," % (self.strEncoding,) + repr(self.strValue) + ")"
|
||||
return "CharacterString(%d,X'%s')" % (self.strEncoding, btox(self.strValue))
|
||||
|
||||
#
|
||||
# BitString
|
||||
|
||||
Reference in New Issue
Block a user