@ -155,13 +155,12 @@ void ICACHE_FLASH_ATTR sendValues() {
sd . voltage = analogRead ( A0 ) * 0.04285078 - 0.05942125 ; // by linear regression for my(!) voltage divider. else: sd.voltage = analogRead(A0)*3.3*(R1+R2)/(R2*1024)
# endif
int sds_error = sds . read ( & ( sd . p25 ) , & ( sd . p10 ) ) ;
int sds_error = sds . query ( & ( sd . p25 ) , & ( sd . p10 ) ) ;
if ( ! sds_error ) {
// DEBUG_MSG("SDS011 updated.\n");
} else {
// DEBUG_MSG("SDS011 no new values.\n");
}
// sds.sleep();
if ( rtcMillis ( ) - geiger_previousMillis > 10000 ) {
@ -387,6 +386,7 @@ void setup() {
sds . begin ( SDS_TX , SDS_RX ) ;
sds . mode_mon_300 ( ) ;
sds . mode_query ( ) ;
Wire . begin ( BMP_SDA , BMP_SCL ) ;
if ( ! bmp . begin ( BMP085_MODE_STANDARD ) ) {