Skip to content

Commit

Permalink
Revert "CH_EN activated with delay at reset"
Browse files Browse the repository at this point in the history
This reverts commit e814c4f.
  • Loading branch information
JAndrassy committed May 17, 2020
1 parent 91527a6 commit b23cbdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Uno WiFi Developer Edition Serial1
version=1.0.3
version=1.0.4
author=Juraj Andrassy
maintainer=Juraj Andrassy <[email protected]>
sentence=Implements Serial1 of Arduino Uno WiFi Developer Edition board to access the on-board ESP8266
Expand Down
5 changes: 1 addition & 4 deletions src/UnoWiFiDevEdSerial1.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2017 Juraj Andr�ssy
Copyright (C) 2017 Juraj Andrássy
repository https://github.com/jandrassy
This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -182,12 +182,9 @@ void UnoWiFiDevEdSerial1::resetESP(boolean toBootloader) {
} else {
pinMode(ESP_OFF_PIN, OUTPUT);
digitalWrite(ESP_OFF_PIN, HIGH);
pinMode(ESP_CH_EN_PIN, OUTPUT); // CH_EN should be activated with delay after power-up
digitalWrite(ESP_CH_EN_PIN, LOW);
delay(5);
digitalWrite(ESP_OFF_PIN, LOW); // for sure
delay(5);
pinMode(ESP_CH_EN_PIN, INPUT); // let it to pull-up resistor
pinMode(ESP_OFF_PIN, INPUT); // let it to pull-down resistor
}
}
Expand Down

0 comments on commit b23cbdd

Please sign in to comment.