From d75af95f4e045d8a6aff84fb1082349501783973 Mon Sep 17 00:00:00 2001 From: Ted Pudlik Date: Mon, 5 Aug 2024 21:52:29 +0000 Subject: [PATCH] pw_digital_io_rp2040: Don't discard status returns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: 357090965 Change-Id: Ief7320edd54eb379f23773730d5922b207f0d6e8 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/227712 Pigweed-Auto-Submit: Ted Pudlik Commit-Queue: Auto-Submit Lint: Lint 🤖 Reviewed-by: Wyatt Hepler --- pw_digital_io_rp2040/digital_io_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pw_digital_io_rp2040/digital_io_test.cc b/pw_digital_io_rp2040/digital_io_test.cc index bdb46465f1..203a0132d0 100644 --- a/pw_digital_io_rp2040/digital_io_test.cc +++ b/pw_digital_io_rp2040/digital_io_test.cc @@ -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_result = input_pin.GetState(); ASSERT_EQ(OkStatus(), state_result.status()); ASSERT_EQ(State::kInactive, state_result.value());