fix IRAM_ATTR specified both in function declaration and definition (#19286)

This commit is contained in:
Christian Baars 2023-08-10 12:19:18 +02:00 committed by GitHub
parent d85557711d
commit 7544d2f23c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1410,8 +1410,7 @@ void ConvertGpios(void) {
}
#endif // ESP8266
int IRAM_ATTR Pin(uint32_t gpio, uint32_t index = 0);
int IRAM_ATTR Pin(uint32_t gpio, uint32_t index) {
int IRAM_ATTR Pin(uint32_t gpio, uint32_t index = 0) {
uint16_t real_gpio = gpio << 5;
uint16_t mask = 0xFFE0;
if (index < GPIO_ANY) {