From 4dcbb6b654c930ff0a58c2996b9baca1cee04515 Mon Sep 17 00:00:00 2001 From: Raul Victor Trombin Date: Wed, 28 Feb 2024 18:54:35 -0300 Subject: [PATCH] examples: Cpp: Add leak_read method to example --- examples/cpp/simple.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/cpp/simple.cpp b/examples/cpp/simple.cpp index c257dbe8b2..c70a5c288f 100644 --- a/examples/cpp/simple.cpp +++ b/examples/cpp/simple.cpp @@ -32,6 +32,8 @@ int main() { printf("Pressure: %f\n", read_pressure()); + printf("Leak sensor: %s\n", read_leak() ? "true" : "false"); + ADCData adc = read_adc_all(); printf("Reading ADC Channels: 1 = %f, 2 = %f, 3 = %f, 4 = %f\n", adc.channel[0], adc.channel[1], adc.channel[2], adc.channel[3]);