Skip to content

Commit

Permalink
examples: Cpp: Add leak_read method to example
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin committed Mar 1, 2024
1 parent 9c58644 commit 4dcbb6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/cpp/simple.cpp
Expand Up @@ -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]);
Expand Down

0 comments on commit 4dcbb6b

Please sign in to comment.