comparison src/menu_tree.asm @ 220:effd7259f5a5

make button sensitivity configurable (cR hardware)
author heinrichsweikamp
date Mon, 05 Jan 2015 14:41:23 +0100
parents 8fbd8c5ac51f
children 23311219dacc
comparison
equal deleted inserted replaced
219:4b2622e0fd50 220:effd7259f5a5
321 MENU_CALL tResetMenu, do_reset_menu 321 MENU_CALL tResetMenu, do_reset_menu
322 MENU_CALL tMore, do_settings_menu_more 322 MENU_CALL tMore, do_settings_menu_more
323 MENU_CALL tExit, do_continue_main_menu 323 MENU_CALL tExit, do_continue_main_menu
324 MENU_END 324 MENU_END
325 325
326 extern comm_mode0 326
327 do_settings_menu_more: 327 do_settings_menu_more:
328 btfsc cr_hardware
329 bra do_settings_menu_more_c3
330
331 MENU_BEGIN tSystSets, .6
332 MENU_CALL tCompassMenu, do_compass_menu
333 MENU_CALL tLogOffset, do_log_offset_menu
334 MENU_OPTION tUnits, oUnits, 0
335 MENU_OPTION tSamplingrate,oSamplingRate,0
336 MENU_OPTION tDvSalinity,oDiveSalinity, 0
337 MENU_CALL tExit, do_return_settings
338 MENU_END
339
340 do_settings_menu_more_c3:
328 MENU_BEGIN tSystSets, .7 341 MENU_BEGIN tSystSets, .7
329 MENU_CALL tCompassMenu, do_compass_menu 342 MENU_CALL tCompassMenu, do_compass_menu
330 MENU_CALL tLogOffset, do_log_offset_menu 343 MENU_CALL tLogOffset, do_log_offset_menu
331 MENU_OPTION tUnits, oUnits, 0 344 MENU_OPTION tUnits, oUnits, 0
332 MENU_OPTION tSamplingrate,oSamplingRate,0 345 MENU_OPTION tSamplingrate,oSamplingRate,0
333 MENU_OPTION tDvSalinity,oDiveSalinity, 0 346 MENU_OPTION tDvSalinity,oDiveSalinity, 0
347 MENU_CALL tMore, do_settings_cr_menu
348 MENU_CALL tExit, do_return_settings
349 MENU_END
350
351 extern comm_mode0
352 do_settings_cr_menu: ; Menu with features only available in cR hardware
353 MENU_BEGIN tSystSets, .4
334 MENU_CALL tUsbTitle, comm_mode0 354 MENU_CALL tUsbTitle, comm_mode0
335 MENU_CALL tExit, do_return_settings 355 MENU_OPTION tButtonleft,ocR_button_left ,0 ; left button sensitivity
336 MENU_END 356 MENU_OPTION tButtonright,ocR_button_right,0 ; right button sensitivity
357 MENU_CALL tExit, do_settings_menu_more_c3
358 MENU_END
359
360
337 361
338 do_compass_menu: 362 do_compass_menu:
339 MENU_BEGIN tSystSets, .2 363 MENU_BEGIN tSystSets, .2
340 MENU_CALL tCompassMenu, compass_calibration_loop 364 MENU_CALL tCompassMenu, compass_calibration_loop
341 ; MENU_OPTION tCompassGain, oCompassGain, 0 365 ; MENU_OPTION tCompassGain, oCompassGain, 0