Skip to content

Commit

Permalink
Oopsie woopsie in the admin panel melody selector
Browse files Browse the repository at this point in the history
  • Loading branch information
akasaka committed Sep 27, 2024
1 parent 1ec5992 commit dc598e6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/app/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DiskSpaceView: public MenuInfoItemView {
}

private:
char buf[24] = { 0 };
char buf[32] = { 0 };
};

AppShimMenu::AppShimMenu(Beeper *b, NewSequencer *s, Yukkuri *y): ProtoShimNavMenu::ProtoShimNavMenu() {
Expand Down
22 changes: 10 additions & 12 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,26 +203,26 @@ void boot_task(void*) {

con->clear();

con->print("WiFi init");
// con->print("WiFi init");
NetworkManager::startup();
while(!NetworkManager::is_up()) {
delay(1000);
con->write('.');
delay(100);
// con->write('.');
}

con->clear();

screenshooter = new Screenshooter(fb->manipulate());
if(prefs_get_bool(PREFS_KEY_REMOTE_SERVER)) {
screenshooter->start_server(3939);
con->print("RC server up!");
delay(1000);
// con->print("RC server up!");
// delay(1000);
}
con->print(NetworkManager::network_name());
con->print("%i dBm", NetworkManager::rssi());
delay(2000);
con->print(NetworkManager::current_ip().c_str());
delay(2000);
// con->print(NetworkManager::network_name());
// con->print("%i dBm", NetworkManager::rssi());
// delay(2000);
// con->print(NetworkManager::current_ip().c_str());
// delay(2000);

ota = new OTAFVUManager(con, seq);

Expand Down Expand Up @@ -350,8 +350,6 @@ void loop() {
appHost->switch_to(_actual_current_state, _next_transition);
}
print_memory();

if(_actual_current_state == STATE_BOOT) taskYIELD();
} else {
if(_actual_current_state != current_state && current_state == STATE_RESTART) {
_actual_current_state = current_state;
Expand Down
5 changes: 4 additions & 1 deletion src/network/admin_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,10 @@ void admin_panel_prepare(SensorPool* s, Beeper* b) {
all_chime_names_csv.reserve(all_chime_list.size() * 32);
for(int i = 0; i < all_chime_list.size(); i++) {
if(i > 0) all_chime_names_csv += ",";
all_chime_names_csv += all_chime_list[i]->get_long_title();
size_t loc = std::string::npos;
std::string tmp = std::string(all_chime_list[i]->get_long_title());
std::replace(tmp.begin(), tmp.end(), ',', '/');
all_chime_names_csv += tmp;
}

// Due to a bug in GyverPortal, handle uploads on our own
Expand Down

0 comments on commit dc598e6

Please sign in to comment.