Mercurial > public > hwos_code
comparison src/menu_tree.asm @ 243:ee81f46714cb
auto-select correct settings menu
author | heinrichsweikamp |
---|---|
date | Wed, 04 Mar 2015 16:25:44 +0100 |
parents | 633c7a6de5bc |
children | 1207cf9a9408 |
comparison
equal
deleted
inserted
replaced
242:df8beb913ade | 243:ee81f46714cb |
---|---|
334 MENU_CALL tExit, do_continue_main_menu | 334 MENU_CALL tExit, do_continue_main_menu |
335 MENU_END | 335 MENU_END |
336 | 336 |
337 | 337 |
338 do_settings_menu_more: | 338 do_settings_menu_more: |
339 btfsc rechargeable | 339 btfsc rechargeable ; piezo buttons available |
340 bra do_settings_menu_more_c3 | 340 bra do_settings_menu_more_c3 |
341 | 341 btfsc ble_available ; ble available |
342 bra do_settings_menu_more_ble | |
342 MENU_BEGIN tSystSets, .6 | 343 MENU_BEGIN tSystSets, .6 |
343 MENU_CALL tCompassMenu, do_compass_menu | 344 MENU_CALL tCompassMenu, do_compass_menu |
344 MENU_CALL tLogOffset, do_log_offset_menu | 345 MENU_CALL tLogOffset, do_log_offset_menu |
345 MENU_OPTION tUnits, oUnits, 0 | 346 MENU_OPTION tUnits, oUnits, 0 |
346 MENU_OPTION tSamplingrate,oSamplingRate,0 | 347 MENU_OPTION tSamplingrate,oSamplingRate,0 |
358 MENU_CALL tMore, do_settings_cr_menu | 359 MENU_CALL tMore, do_settings_cr_menu |
359 MENU_CALL tExit, do_return_settings | 360 MENU_CALL tExit, do_return_settings |
360 MENU_END | 361 MENU_END |
361 | 362 |
362 extern comm_mode0 | 363 extern comm_mode0 |
364 | |
363 do_settings_cr_menu: ; Menu with features only available in cR hardware | 365 do_settings_cr_menu: ; Menu with features only available in cR hardware |
364 MENU_BEGIN tSystSets, .4 | 366 MENU_BEGIN tSystSets, .4 |
365 MENU_CALL tUsbTitle, comm_mode0 | 367 MENU_CALL tUsbTitle, comm_mode0 |
366 MENU_OPTION tButtonleft,ocR_button_left ,0 ; left button sensitivity | 368 MENU_OPTION tButtonleft,ocR_button_left ,0 ; left button sensitivity |
367 MENU_OPTION tButtonright,ocR_button_right,0 ; right button sensitivity | 369 MENU_OPTION tButtonright,ocR_button_right,0 ; right button sensitivity |
368 MENU_CALL tExit, do_settings_menu_more_c3 | 370 MENU_CALL tExit, do_settings_menu_more_c3 |
369 MENU_END | 371 MENU_END |
370 | 372 |
371 | 373 do_settings_menu_more_ble: ; Menu with BLE feature |
374 MENU_BEGIN tSystSets, .7 | |
375 MENU_CALL tCompassMenu, do_compass_menu | |
376 MENU_CALL tLogOffset, do_log_offset_menu | |
377 MENU_OPTION tUnits, oUnits, 0 | |
378 MENU_OPTION tSamplingrate,oSamplingRate,0 | |
379 MENU_OPTION tDvSalinity,oDiveSalinity, 0 | |
380 MENU_CALL tUsbTitle, comm_mode0 | |
381 MENU_CALL tExit, do_return_settings | |
382 MENU_END | |
372 | 383 |
373 do_compass_menu: | 384 do_compass_menu: |
374 MENU_BEGIN tSystSets, .2 | 385 MENU_BEGIN tSystSets, .2 |
375 MENU_CALL tCompassMenu, compass_calibration_loop | 386 MENU_CALL tCompassMenu, compass_calibration_loop |
376 ; MENU_OPTION tCompassGain, oCompassGain, 0 | 387 ; MENU_OPTION tCompassGain, oCompassGain, 0 |