Skip to content

Commit c604891

Browse files
Qinghao ShiQinghao Shi
authored andcommitted
address github comments
1 parent e012ce4 commit c604891

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

APIs_Drivers/QSPI/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static bool mem_ready()
5353
if (QSPI_STATUS_OK != qspi_device.command_transfer(CMD_RDSR, -1, NULL, 0, status_value, STATUS_REG_SIZE)) {
5454
printf("Reading Status Register failed \n");
5555
}
56-
wait_us(1000);
56+
ThisThread::sleep_for(1);
5757
} while ((status_value[0] & BIT_WIP) != 0 && retries);
5858

5959
if ((status_value[0] & BIT_WIP) != 0) {

Tutorials_UsingAPIs/Flow-Control-Interrupt-Button/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ int main()
1414
button.rise(&toggle); // call toggle function on the rising edge
1515
while (1) { // wait around, interrupts will interrupt this!
1616
heartbeat = !heartbeat;
17-
wait_us(250000);
17+
ThisThread::sleep_for(250);
1818
}
1919
}

Tutorials_UsingAPIs/Flow-Control-Ticker/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ int main()
1717
// spin in a main loop. flipper will interrupt it to call flip
1818
while (1) {
1919
led1 = !led1;
20-
wait_us(200000);
20+
ThisThread::sleep_for((200);
2121
}
2222
}

0 commit comments

Comments
 (0)