Skip to content

Commit

Permalink
fix build with other ports
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Oct 6, 2023
1 parent 4be0aed commit ffc744a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/portable/analog/max3421/hcd_max3421.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ bool hcd_setup_send(uint8_t rhport, uint8_t daddr, uint8_t const setup_packet[8]
}

// ESP32 out-of-sync
#if defined(ARDUINO_ARCH_ESP32) && ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(2, 0, 14) && !defined(PLATFORMIO)
#if defined(ARDUINO_ARCH_ESP32) && ESP_ARDUINO_VERSION < 0x020014 && !defined(PLATFORMIO)
bool hcd_edpt_clear_stall(uint8_t dev_addr, uint8_t ep_addr) {
#else
// clear stall, data toggle is also reset to DATA0
Expand Down Expand Up @@ -875,7 +875,7 @@ void print_hirq(uint8_t hirq) {
#endif

// ESP32 out-of-sync
#if defined(ARDUINO_ARCH_ESP32) && ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(2, 0, 14) && !defined(PLATFORMIO)
#if defined(ARDUINO_ARCH_ESP32) && ESP_ARDUINO_VERSION < 0x020014 && !defined(PLATFORMIO)
void hcd_int_handler_esp32(uint8_t rhport, bool in_isr) {
#else
// Interrupt handler
Expand Down

0 comments on commit ffc744a

Please sign in to comment.