Skip to content

Commit

Permalink
Merge pull request esp8266#530 from h4rm0n1c/esp8266
Browse files Browse the repository at this point in the history
fix digitalWrite behavior
  • Loading branch information
igrr committed Jul 10, 2015
2 parents e7b7d6d + 8e699b4 commit 319156b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cores/esp8266/core_esp8266_wiring_digital.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ extern void __pinMode(uint8_t pin, uint8_t mode) {
}

extern void ICACHE_RAM_ATTR __digitalWrite(uint8_t pin, uint8_t val) {
val &= 0x01;
if(pin < 16){
if(val) GPOS = (1 << pin);
else GPOC = (1 << pin);
Expand Down

0 comments on commit 319156b

Please sign in to comment.