Skip to content

Commit 022ffd9

Browse files
Fix compiler error in Arduino IDE 2.0.x (#103)
Compiling stops with the following error with compiler warnings set to `All`. `/home/cellie/Arduino/libraries/ESP_VS1053_Library/src/VS1053.cpp:298:14:error: variable 'regbuf' set but not used [-Werror=unused-but-set-variable]`
1 parent 16044ba commit 022ffd9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/VS1053.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ void VS1053::streamModeOff() {
297297
void VS1053::printDetails(const char *header) {
298298
uint16_t regbuf[16];
299299
uint8_t i;
300+
(void)regbuf;
300301

301302
LOG("%s", header);
302303
LOG("REG Contents\n");

0 commit comments

Comments
 (0)