Skip to content

Commit

Permalink
Update test for SCK2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Sep 10, 2024
1 parent f8d1d98 commit f7e1e23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sam/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions sam/src/SckTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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");
}
Expand Down

0 comments on commit f7e1e23

Please sign in to comment.