FP2-1642: Booting to charging mode should not vibrate the device
Booting to charging mode should not vibrate the device
Change-Id: Id4e63ff9daa10f119db2500c4e39b7b1b6fe15f3
diff --git a/target/FP2/init.c b/target/FP2/init.c
index 58cf707..99dc4ff 100644
--- a/target/FP2/init.c
+++ b/target/FP2/init.c
@@ -394,8 +394,10 @@
target_crypto_init_params();
/* Vibrator start */
- dprintf(INFO, "calling vibrator enable\n");
- vibrator_enable();
+ if (!target_pause_for_battery_charge()){
+ dprintf(INFO, "calling vibrator enable\n");
+ vibrator_enable();
+ }
/* Vibrator end */
/*