Skip to content

Commit

Permalink
Reverted changes related to wrong est_delay_us definition in the late…
Browse files Browse the repository at this point in the history
…st SDK. (See: esp8266/Arduino#3782 )
  • Loading branch information
slav-at-attachix committed Nov 22, 2017
1 parent 86ea5a3 commit 9630135
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Sming/Libraries/Adafruit_ILI9341/Adafruit_ILI9341.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ void Adafruit_ILI9341::begin(void) {
transmitCmdData(0xE1, data, 15); //Set Gamma

transmitCmd(0x11); //Exit Sleep
os_delay_us(60000);
os_delay_us(60000);
os_delay_us(120000);

transmitCmd(0x29); //Display on
transmitCmd(0x2c);
Expand Down
4 changes: 2 additions & 2 deletions Sming/SmingCore/Clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ void delay(uint32_t time)
int remainder = time % MAX_SAFE_DELAY;
for(int i=0, max = quotient + 1; i < max ; i++) {
if(i == quotient) {
os_delay_us((uint16_t)(remainder * 1000));
os_delay_us(remainder * 1000);
}
else {
os_delay_us((uint16_t)(MAX_SAFE_DELAY * 1000));
os_delay_us(MAX_SAFE_DELAY * 1000);
}

system_soft_wdt_feed ();
Expand Down

0 comments on commit 9630135

Please sign in to comment.