]> sigrok.org Git - libsigrok.git/commitdiff
arachnid-labs-re-load-pro: Replace C++-style comments with C-style comments.
authorFrank Stettner <redacted>
Tue, 6 Mar 2018 15:56:42 +0000 (16:56 +0100)
committerUwe Hermann <redacted>
Tue, 6 Mar 2018 16:39:37 +0000 (17:39 +0100)
src/hardware/arachnid-labs-re-load-pro/protocol.c

index 38405157308b6d5a325b7a2c5c7a71cb0b3eb478..998ba17119113956bd1f3f17a57f9cb19223f0ad 100644 (file)
@@ -171,7 +171,7 @@ SR_PRIV int reloadpro_get_current_limit(const struct sr_dev_inst *sdi,
                end_time = g_get_monotonic_time () + 5 * G_TIME_SPAN_SECOND;
                if (!g_cond_wait_until(&devc->current_limit_cond,
                                &devc->acquisition_mutex, end_time)) {
-                       // timeout has passed.
+                       /* Timeout has passed. */
                        g_mutex_unlock(&devc->acquisition_mutex);
                        return SR_ERR;
                }
@@ -207,7 +207,7 @@ SR_PRIV int reloadpro_get_under_voltage_threshold(const struct sr_dev_inst *sdi,
                end_time = g_get_monotonic_time () + 5 * G_TIME_SPAN_SECOND;
                if (!g_cond_wait_until(&devc->uvc_threshold_cond,
                                &devc->acquisition_mutex, end_time)) {
-                       // timeout has passed.
+                       /* Timeout has passed. */
                        g_mutex_unlock(&devc->acquisition_mutex);
                        return SR_ERR;
                }
@@ -244,7 +244,7 @@ SR_PRIV int reloadpro_get_voltage_current(const struct sr_dev_inst *sdi,
                end_time = g_get_monotonic_time () + 5 * G_TIME_SPAN_SECOND;
                if (!g_cond_wait_until(&devc->voltage_cond,
                                &devc->acquisition_mutex, end_time)) {
-                       // timeout has passed.
+                       /* Timeout has passed. */
                        g_mutex_unlock(&devc->acquisition_mutex);
                        return SR_ERR;
                }