vibra: Some style and comment fixes

Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Guido Günther
2025-05-09 19:37:41 +00:00
parent 5cbd5a2893
commit 32cf0758d2
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ do_pattern_step (FbdFeedbackVibraPattern *self)
*magnitude, *magnitude,
*duration); *duration);
/* Removing any pending effect */ /* Remove any pending effect */
fbd_dev_vibra_remove_effect (dev); fbd_dev_vibra_remove_effect (dev);
if (*magnitude != 0.0) { if (*magnitude != 0.0) {
+7 -4
View File
@@ -1,6 +1,9 @@
/* /*
* Copyright (C) 2020 Purism SPC * Copyright (C) 2020 Purism SPC
* 2024-2025 The Phosh Developers
*
* SPDX-License-Identifier: GPL-3.0+ * SPDX-License-Identifier: GPL-3.0+
*
* Author: Guido Günther <agx@sigxcpu.org> * Author: Guido Günther <agx@sigxcpu.org>
*/ */
@@ -94,15 +97,15 @@ fbd_feedback_vibra_end (FbdFeedbackBase *base)
g_return_if_fail (klass->end_vibra); g_return_if_fail (klass->end_vibra);
klass->end_vibra (self); klass->end_vibra (self);
g_clear_handle_id (&priv->timer_id, g_source_remove); g_clear_handle_id (&priv->timer_id, g_source_remove);
fbd_feedback_base_done (FBD_FEEDBACK_BASE(self)); fbd_feedback_base_done (FBD_FEEDBACK_BASE (self));
} }
static void static void
fbd_feedback_vibra_set_property (GObject *object, fbd_feedback_vibra_set_property (GObject *object,
guint property_id, guint property_id,
const GValue *value, const GValue *value,
GParamSpec *pspec) GParamSpec *pspec)
{ {
FbdFeedbackVibra *self = FBD_FEEDBACK_VIBRA (object); FbdFeedbackVibra *self = FBD_FEEDBACK_VIBRA (object);
FbdFeedbackVibraPrivate *priv = fbd_feedback_vibra_get_instance_private (self); FbdFeedbackVibraPrivate *priv = fbd_feedback_vibra_get_instance_private (self);