Skip to content

Commit 3ab43d5

Browse files
committed
Updated sketch, removed the forced testmode (used for testing)
1 parent 4a0c3bb commit 3ab43d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libraries/MySensors/examples/MysensorMicro/MysensorMicro.ino

+4-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ void setup() {
6363

6464
Serial.begin(115200);
6565
// First check if we should boot into test mode
66-
testMode();
66+
6767
pinMode(TEST_PIN,INPUT);
68-
digitalWrite(TEST_PIN, HIGH);
68+
digitalWrite(TEST_PIN, HIGH); // Enable pullup
6969
if (!digitalRead(TEST_PIN)) testMode();
7070

7171
digitalWrite(TEST_PIN,LOW);
@@ -202,6 +202,8 @@ void testMode()
202202
uint8_t ret_code;
203203
byte tests = 0;
204204

205+
digitalWrite(LED_PIN, HIGH); // Turn on LED.
206+
205207
Serial.println(F("Testing peripherals!"));
206208
Serial.print(F("-> SI7021 : "));
207209
delay(100);

0 commit comments

Comments
 (0)