print nothing if reading ina219 sensors with nothing there

pull/182/head
alanbjohnston 3 years ago committed by GitHub
parent feb5b430ce
commit c2749f0e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2054,6 +2054,9 @@ void test_radio()
void read_ina219()
{
if (voltage_read && !i2c_bus1 && !i2c_bus3)
Serial.println("Nothing to read");
#ifdef PICO_0V1
digitalWrite(PI_3V3_PIN, HIGH);
#endif

Loading…
Cancel
Save

Powered by TurnKey Linux.