Usar pararCPU_MON() en vez de setEnfuncionamiento

Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
Somebody Master 2021-05-12 09:33:30 +02:00
parent 6a855f6f5e
commit bf1663695d
Signed by: somebody_master
GPG Key ID: 78315CFDF0B25505

View File

@ -89,9 +89,10 @@ void userInterface(const uint8_t *num_menu, vector<string> *mensaje,
ui::g_maxCols - ui::g_maxCols / 2 - 1));
std::thread monHilo(monitorHilo, &monitor);
monHilo.detach();
sleep(10);
monitor.setEnfuncionamiento(false);
monitor.pararCPU_MON();
vector<string> elem_menu = {txt::g_menuPrincipal_1, txt::g_menuPrincipal_2,
txt::g_menuPrincipal_3};