File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 41
41
#define BOOTLOADER_ENTRY_EFFECT_AMPLITUDE 100
42
42
// Duration of the bootloader entry effect
43
43
#define BOOTLOADER_ENTRY_EFFECT_DURATION 300
44
+ // Amplitude of the power on effect
45
+ #define POWER_ON_EFFECT_AMPLITUDE 50
46
+ // Duration of the power on effect
47
+ #define POWER_ON_EFFECT_DURATION 50
44
48
45
49
// Actuator configuration
46
50
#include HAPTIC_ACTUATOR
@@ -354,6 +358,9 @@ bool haptic_play(haptic_effect_t effect) {
354
358
return haptic_play_rtp (BOOTLOADER_ENTRY_EFFECT_AMPLITUDE ,
355
359
BOOTLOADER_ENTRY_EFFECT_DURATION );
356
360
break ;
361
+ case HAPTIC_POWER_ON :
362
+ return haptic_play_rtp (POWER_ON_EFFECT_AMPLITUDE ,
363
+ POWER_ON_EFFECT_DURATION );
357
364
default :
358
365
break ;
359
366
}
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ typedef enum {
28
28
HAPTIC_HOLD_TO_CONFIRM = 1 ,
29
29
// Bootloader entry
30
30
HAPTIC_BOOTLOADER_ENTRY = 2 ,
31
+ // Power on
32
+ HAPTIC_POWER_ON = 3 ,
31
33
} haptic_effect_t ;
32
34
33
35
#ifdef KERNEL_MODE
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ static secbool boot_sequence(void) {
196
196
}
197
197
#ifdef USE_HAPTIC
198
198
if (elapsed >= 500 && !haptic_played ) {
199
- haptic_play (HAPTIC_BUTTON_PRESS );
199
+ haptic_play (HAPTIC_POWER_ON );
200
200
haptic_played = true;
201
201
}
202
202
#endif
You can’t perform that action at this time.
0 commit comments