Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frostmorn committed Mar 24, 2024
1 parent 911b68f commit 5df0232
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions firmware/keira/src/apps/filebrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "icons/lua.h"
#include "icons/js.h"

FileBrowserApp::FileBrowserApp() : App(APP_FBROWSER_NAME) {
FileBrowserApp::FileBrowserApp() : App(APP_FBROWSER_NAME), currentDir(0) {
}

String FileBrowserApp::getHumanReadableSize(size_t size) {
Expand Down Expand Up @@ -168,7 +168,7 @@ const uint16_t FileBrowserApp::getFileColor(const String& filename) {
return lilka::display.color565(200, 200, 200);
}
}
void FileBrowserApp::alertDraw(String& title, String& message) {
void FileBrowserApp::alertDraw(const String title, const String message) {
lilka::Alert alert(title, message);
alert.draw(canvas);
queueDraw();
Expand Down
4 changes: 2 additions & 2 deletions firmware/keira/src/apps/filebrowser.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ class FileBrowserApp : public App {
String currentPath;
DIR* currentDir;
// Blocking Draw Functions:
void alertDraw(lilka::Alert& alert);
void alertDraw(const String title, const String message);
void menuDraw(lilka::Menu& menu);

public:
// TODO: Refactor this place, probably pass Path through constructor
// TODO: Refactor this place, probably pass
void setPath(const String path);
FileBrowserApp();

Expand Down

0 comments on commit 5df0232

Please sign in to comment.