Skip to content

Commit

Permalink
pw_digital_io_rp2040: Don't discard status returns
Browse files Browse the repository at this point in the history
Bug: 357090965
Change-Id: Ief7320edd54eb379f23773730d5922b207f0d6e8
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/227712
Pigweed-Auto-Submit: Ted Pudlik <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
Lint: Lint 🤖 <[email protected]>
Reviewed-by: Wyatt Hepler <[email protected]>
  • Loading branch information
tpudlik authored and CQ Bot Account committed Aug 5, 2024
1 parent 6cd58e1 commit d75af95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pw_digital_io_rp2040/digital_io_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ TEST(DigitalIoTest, LogicalToPhysical) {

TEST(DigitalIoTest, Init) {
// Simple test only meant to ensure module is compiled.
output_pin.Enable();
output_pin.SetState(pw::digital_io::State::kActive);
ASSERT_EQ(OkStatus(), output_pin.Enable());
ASSERT_EQ(OkStatus(), output_pin.SetState(pw::digital_io::State::kActive));

input_pin.Enable();
ASSERT_EQ(OkStatus(), input_pin.Enable());
Result<State> state_result = input_pin.GetState();
ASSERT_EQ(OkStatus(), state_result.status());
ASSERT_EQ(State::kInactive, state_result.value());
Expand Down

0 comments on commit d75af95

Please sign in to comment.