In C++20, using the result of an assignment to a 'volatile' value is deprecated. Breaking change: register "setter" or modification macros can no longer be used as expressions. Closes https://github.com/espressif/esp-idf/issues/9170