X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fconrad-digi-35-cpu%2Fprotocol.c;h=7657b319bc2d59a4e2d4555203794689673a1e2f;hb=c6c63b08af0f73b60de6726c9d5aea50d20d83d2;hp=0937bf6d9081cb374197bc5504ea2771a7d2c9ee;hpb=c6a2843a58a398d0095291c2a1f397b419d164f4;p=libsigrok.git diff --git a/hardware/conrad-digi-35-cpu/protocol.c b/hardware/conrad-digi-35-cpu/protocol.c index 0937bf6d..7657b319 100644 --- a/hardware/conrad-digi-35-cpu/protocol.c +++ b/hardware/conrad-digi-35-cpu/protocol.c @@ -17,24 +17,23 @@ * along with this program. If not, see . */ -/** @file - * Conrad DIGI 35 CPU power supply driver - * @internal +/** + * @file + * Conrad DIGI 35 CPU power supply driver + * @internal */ #include "protocol.h" -#include -#include - -/** Send command with parameter. +/** + * Send command with parameter. * - * @param[in] cmd Command - * @param[in] param Parameter (0..999, depending on command). + * @param[in] cmd Command + * @param[in] param Parameter (0..999, depending on command). * - * @retval SR_OK Success - * @retval SR_ERR_ARG Invalid argument. - * @retval SR_ERR Error. + * @retval SR_OK Success. + * @retval SR_ERR_ARG Invalid argument. + * @retval SR_ERR Error. */ SR_PRIV int send_msg1(const struct sr_dev_inst *sdi, char cmd, int param) { @@ -53,7 +52,12 @@ SR_PRIV int send_msg1(const struct sr_dev_inst *sdi, char cmd, int param) sr_err("Write error for cmd=%c: %d %s", cmd, errno, strerror(errno)); return SR_ERR; } - g_usleep(50000); /* Wait 50 ms to ensure that the device does not swallow following commands. */ + + /* + * Wait 50ms to ensure that the device does not swallow any of the + * following commands. + */ + g_usleep(50000); return SR_OK; }