Skip to content

Commit

Permalink
Update core_compatibility.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
P-R-O-C-H-Y committed Mar 26, 2024
1 parent b550015 commit 45dbabb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/en/guides/core_compatibility.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ To ensure compatibility with both versions of the ESP32 Arduino core, developers

.. code-block:: cpp

#ifdef ESP_ARDUINO_VERSION_MAJOR
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 0, 0)
// Code for ESP32 Arduino core version 3.x
// Code for version 3.x
#else
// Code for ESP32 Arduino core version 2.x
// Code for version 2.x
#endif
#else
// Code for version 1.x
#endif

Version Print
Expand Down

0 comments on commit 45dbabb

Please sign in to comment.