Skip to content

Commit

Permalink
Fix compilation error when idf_version<4
Browse files Browse the repository at this point in the history
  • Loading branch information
tobozo committed Oct 30, 2023
1 parent 01cb6f1 commit 44315e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utility/ScreenShotService/AVI/AVI_Types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ namespace fs
virtual const char* name() const { return _file.name(); }
virtual const char* path() const {
#if defined ESP_IDF_VERSION_MAJOR && ESP_IDF_VERSION_MAJOR >= 4
return _file->path();
return _file.path();
#else
return _file->name();
return _file.name();
#endif
}
virtual String getNextFileName(void) { /* not implemented and not needed */ return String("Unimplemented"); }
Expand Down

0 comments on commit 44315e3

Please sign in to comment.