~gabe/flashlight-firmware/anduril2

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/ramp-mode.c

  • Committer: Gabriel Hart
  • Date: 2021-05-15 14:55:39 UTC
  • mfrom: (579.1.11 anduril2)
  • Revision ID: gabe@ghart.com-20210515145539-smltt7c90ieq59ul
Add config option to allow 3C smooth/stepped selection in Simple UI, add that option to the Sofirn configs

Show diffs side-by-side

added added

removed removed

Lines of Context:
336
336
    #endif  // ifdef USE_THERMAL_REGULATION
337
337
 
338
338
    ////////// Every action below here is blocked in the simple UI //////////
339
 
    #ifdef USE_SIMPLE_UI
 
339
    // That is, unless we specifically want to enable 3C for smooth/stepped selection in Simple UI
 
340
    #if defined(USE_SIMPLE_UI) && !defined(USE_SIMPLE_UI_RAMPING_TOGGLE)
340
341
    if (simple_ui_active) {
341
342
        return EVENT_NOT_HANDLED;
342
343
    }
358
359
        return MISCHIEF_MANAGED;
359
360
    }
360
361
 
 
362
    // If we allowed 3C in Simple UI, now block further actions
 
363
    #if defined(USE_SIMPLE_UI) && defined(USE_SIMPLE_UI_RAMPING_TOGGLE)
 
364
    if (simple_ui_active) {
 
365
        return EVENT_NOT_HANDLED;
 
366
    }
 
367
    #endif
 
368
 
361
369
    #ifndef USE_TINT_RAMPING
362
370
    // 3H: momentary turbo (on lights with no tint ramping)
363
371
    else if (event == EV_click3_hold) {