diff options
author | Wyatt Hepler <hepler@google.com> | 2020-09-18 11:09:36 -0700 |
---|---|---|
committer | CQ Bot Account <commit-bot@chromium.org> | 2020-09-18 23:32:33 +0000 |
commit | 1748f65d0dbcad87d344240e281b383c0f905b58 (patch) | |
tree | 13f9c761c1a8a15ececc3f4d76553a2d21fa7415 /pw_status/py | |
parent | 0fadf44076a6926ff6c180c4e3eec474775c8c8f (diff) | |
download | pigweed-1748f65d0dbcad87d344240e281b383c0f905b58.tar.gz |
pw_hdlc_lite: HdlcRpcClient class
Provide a class that configures a pw_rpc.Client for use over HDLC.
Change-Id: I191b9ef85926b11421c870f9d914b6a111dd8795
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/18461
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
Diffstat (limited to 'pw_status/py')
-rw-r--r-- | pw_status/py/pw_status/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pw_status/py/pw_status/__init__.py b/pw_status/py/pw_status/__init__.py index 060ac515d..6d22bda82 100644 --- a/pw_status/py/pw_status/__init__.py +++ b/pw_status/py/pw_status/__init__.py @@ -34,3 +34,6 @@ class Status(enum.Enum): INTERNAL = 13 UNAVAILABLE = 14 DATA_LOSS = 15 + + def ok(self) -> bool: + return self is self.OK |