From f7e1e2346425d76a638547e704564f29402e243b Mon Sep 17 00:00:00 2001 From: oscgonfer Date: Tue, 10 Sep 2024 14:59:23 +0200 Subject: [PATCH] Update test for SCK2.3 --- sam/platformio.ini | 4 ++-- sam/src/SckTest.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sam/platformio.ini b/sam/platformio.ini index b378546..1c88fee 100644 --- a/sam/platformio.ini +++ b/sam/platformio.ini @@ -154,8 +154,8 @@ build_flags = !sh ../tools/git-rev.sh -D SCK_WATER -[env:sck22_air_test] +[env:sck23_air_test] build_flags = !sh ../tools/git-rev.sh - -D SCK22_AIR + -D SCK23_AIR -D TESTING diff --git a/sam/src/SckTest.cpp b/sam/src/SckTest.cpp index 428fe54..f43609f 100644 --- a/sam/src/SckTest.cpp +++ b/sam/src/SckTest.cpp @@ -14,7 +14,7 @@ void SckTest::test_full() testBase->enableSensor(SENSOR_HUMIDITY); testBase->enableSensor(SENSOR_LIGHT); testBase->enableSensor(SENSOR_AS7331_UVA); - testBase->enableSensor(SENSOR_LPS33_PRESSURE); + testBase->enableSensor(SENSOR_MPL_PRESSURE); testBase->enableSensor(SENSOR_NOISE_DBA); testBase->enableSensor(SENSOR_SEN5X_PM_1); @@ -411,12 +411,12 @@ uint8_t SckTest::test_Pressure() if (title) SerialUSB.println("\r\nTesting Pressure sensor..."); - if (!testBase->getReading(&testBase->sensors[SENSOR_LPS33_PRESSURE])) { + if (!testBase->getReading(&testBase->sensors[SENSOR_MPL_PRESSURE])) { SerialUSB.println("ERROR reading Barometric Pressure sensor"); error = 1; } else { - test_report.tests[TEST_PRESS] = testBase->sensors[SENSOR_LPS33_PRESSURE].reading.toFloat(); - sprintf(testBase->outBuff, "%s: %.2f %s", testBase->sensors[SENSOR_LPS33_PRESSURE].title, test_report.tests[TEST_PRESS], testBase->sensors[SENSOR_LPS33_PRESSURE].unit); + test_report.tests[TEST_PRESS] = testBase->sensors[SENSOR_MPL_PRESSURE].reading.toFloat(); + sprintf(testBase->outBuff, "%s: %.2f %s", testBase->sensors[SENSOR_MPL_PRESSURE].title, test_report.tests[TEST_PRESS], testBase->sensors[SENSOR_MPL_PRESSURE].unit); SerialUSB.println(testBase->outBuff); SerialUSB.println("Pressure sensor test finished OK"); }