comparison Discovery/Src/tMenuEditHardware.c @ 854:48b6a3b1f3f8 Evo_2_23

Development bugfix menu id handling: Fixed some issues which showed up after cleanup of the menu id handling
author Ideenmodellierer
date Sat, 09 Mar 2024 20:05:33 +0100
parents bc2fcd002fc4
children 940f8e132638
comparison
equal deleted inserted replaced
853:de6023cc0580 854:48b6a3b1f3f8
283 SSettings *settings = settingsGetPointer(); 283 SSettings *settings = settingsGetPointer();
284 284
285 char text[10]; 285 char text[10];
286 uint8_t textIndex = 0; 286 uint8_t textIndex = 0;
287 287
288
289 set_globalState(StMHARD2_Compass);
290 resetMenuEdit(CLUT_MenuPageHardware);
291
288 text[textIndex++] = '\001'; 292 text[textIndex++] = '\001';
289 text[textIndex++] = TXT_2BYTE; 293 text[textIndex++] = TXT_2BYTE;
290 text[textIndex++] = TXT2BYTE_Compass; 294 text[textIndex++] = TXT2BYTE_Compass;
291 text[textIndex++] = 0; 295 text[textIndex++] = 0;
292 write_topline(text); 296 write_topline(text);
317 setEvent(StMHARD2_Compass_SetCourse, (uint32_t)OnAction_Bearing); 321 setEvent(StMHARD2_Compass_SetCourse, (uint32_t)OnAction_Bearing);
318 setEvent(StMHARD2_Compass_ResetCourse, (uint32_t)OnAction_BearingClear); 322 setEvent(StMHARD2_Compass_ResetCourse, (uint32_t)OnAction_BearingClear);
319 setEvent(StMHARD2_Compass_Calibrate, (uint32_t)OnAction_Compass); 323 setEvent(StMHARD2_Compass_Calibrate, (uint32_t)OnAction_Compass);
320 setEvent(StMHARD2_Compass_Inertia, (uint32_t)OnAction_InertiaLevel); 324 setEvent(StMHARD2_Compass_Inertia, (uint32_t)OnAction_InertiaLevel);
321 setEvent(StMHARD2_Compass_Declination, (uint32_t)OnAction_CompassDeclination); 325 setEvent(StMHARD2_Compass_Declination, (uint32_t)OnAction_CompassDeclination);
326
327 tMenuEdit_select(StMHARD2_Compass_SetCourse);
322 328
323 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext); 329 write_buttonTextline(TXT2BYTE_ButtonBack,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonNext);
324 } 330 }
325 331
326 332