Jens Schmidt / MicrobitIAQ

Dependencies:   microbit

Revision:
41:8f891ea56b0d
Parent:
40:a67a880cb538
Child:
42:ce269f988ac8
--- a/main.cpp	Wed Feb 13 08:04:22 2019 +0000
+++ b/main.cpp	Wed Feb 13 08:05:33 2019 +0000
@@ -207,7 +207,9 @@
         uBit.display.image.setPixelValue(1, 4, 255);
     } else  {
         delete sgp30;
+        delete sgp30Callbacks;
         sgp30 = NULL;
+        sgp30Callbacks = NULL;
     }
 }