tobozo / ESP32-targz

🗜️ An Arduino library to unpack/uncompress tar, gz, and tar.gz files on ESP32 and ESP8266
Other
123 stars 16 forks source link

'tarGzFs' was not declared in this scope #28

Closed frankcohen closed 3 years ago

frankcohen commented 3 years ago

I am using Arduino IDE 1.8.13 on MacOS 11.2.1. I have this in a sketch:

// ESP32-targz

define DEST_FS_USES_SD

include

boolean tarDecompress() { tarGzFs.begin(); . . . }

/Users/frankcohen/Documents/Arduino/ShowRunner/ShowRunner.ino: In function 'boolean tarDecompress()': ShowRunner:512:7: error: 'tarGzFs' was not declared in this scope tarGzFs.begin(); ^

Bet I'm doing something dumb. Ideas?

frankcohen commented 3 years ago

tarGzFs is defined as SD in the .h file. I already do SD.begin() in the setup() method. I commented out tarGzFs.begin() and it complies.

tobozo commented 3 years ago

Hey Frank thanks for reporting this.

Looks like there's some inconsistency in the documentation, the filesystem object should be inherited as tarGzFS instead of tarGzFs.

I'll update the ReadMe accordingly, thanks for spotting that !

frankcohen commented 3 years ago

Glad to help. Thank you for your effort.

tobozo commented 3 years ago

documentation is fixed in the latest release (currently propagating), closing this issue as solved, thanks again for your feedback :+1