MCPcopy Create free account
hub / github.com/BruceDevices/firmware / optionsMenu

Method optionsMenu

src/core/menu_items/ConnectMenu.cpp:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "core/wifi/wifi_common.h"
8
9void ConnectMenu::optionsMenu() {
10 options = {
11#ifndef LITE_VERSION
12 {"Send File", [=]() { FileSharing().sendFile(); } },
13 {"Recv File", [=]() { FileSharing().receiveFile(); } },
14
15 {"Send Cmds", [=]() { EspSerialCmd().sendCommands(); } },
16 {"Recv Cmds", [=]() { EspSerialCmd().receiveCommands(); }},
17#endif
18 };
19 addOptionToMainMenu();
20
21 loopOptions(options, MENU_TYPE_SUBMENU, getName().c_str());
22}
23
24void ConnectMenu::drawIcon(float scale) {
25 clearIconArea();

Callers

nothing calls this directly

Calls 8

FileSharingClass · 0.85
EspSerialCmdClass · 0.85
addOptionToMainMenuFunction · 0.85
sendFileMethod · 0.80
receiveFileMethod · 0.80
sendCommandsMethod · 0.80
receiveCommandsMethod · 0.80
loopOptionsFunction · 0.50

Tested by

no test coverage detected