UC8159: Timeout compiler error fix.

pull/415/head
Phil Howard 2022-06-29 11:14:02 +01:00
rodzic 2d8080eada
commit 589a9e1b23
2 zmienionych plików z 4 dodań i 5 usunięć

Wyświetl plik

@ -39,10 +39,9 @@ namespace pimoroni {
bool UC8159::is_busy() {
if(BUSY == PIN_UNUSED) {
if(timeout > 0 && absolute_time_diff_us(get_absolute_time(), timeout) > 0) {
if(absolute_time_diff_us(get_absolute_time(), timeout) > 0) {
return true;
} else {
timeout = 0;
return false;
}
}

Wyświetl plik

@ -26,13 +26,13 @@ namespace pimoroni {
// interface pins with our standard defaults where appropriate
uint CS = SPI_BG_FRONT_CS;
uint DC = 28;
uint DC = 28; // 27;
uint SCK = SPI_DEFAULT_SCK;
uint MOSI = SPI_DEFAULT_MOSI;
uint BUSY = PIN_UNUSED;
uint RESET = 27;
uint RESET = 27; //25;
absolute_time_t timeout = 0;
absolute_time_t timeout;
public:
enum colour : uint8_t {