*/
SR_PRIV gboolean sr_es519xx_2400_11b_packet_valid(const uint8_t *buf)
{
- struct es519xx_info info = { 0 };
+ struct es519xx_info info;
+ memset(&info, 0, sizeof(struct es519xx_info));
info.baudrate = 2400;
info.packet_size = 11;
*/
SR_PRIV gboolean sr_es519xx_2400_11b_altfn_packet_valid(const uint8_t *buf)
{
- struct es519xx_info info = { 0 };
+ struct es519xx_info info;
+ memset(&info, 0, sizeof(struct es519xx_info));
info.baudrate = 2400;
info.packet_size = 11;
info.alt_functions = TRUE;
*/
SR_PRIV gboolean sr_es519xx_19200_11b_5digits_packet_valid(const uint8_t *buf)
{
- struct es519xx_info info = { 0 };
+ struct es519xx_info info;
+ memset(&info, 0, sizeof(struct es519xx_info));
info.baudrate = 19200;
info.packet_size = 11;
info.fivedigits = TRUE;
*/
SR_PRIV gboolean sr_es519xx_19200_11b_clamp_packet_valid(const uint8_t *buf)
{
- struct es519xx_info info = { 0 };
+ struct es519xx_info info;
+ memset(&info, 0, sizeof(struct es519xx_info));
info.baudrate = 19200;
info.packet_size = 11;
info.clampmeter = TRUE;
*/
SR_PRIV gboolean sr_es519xx_19200_11b_packet_valid(const uint8_t *buf)
{
- struct es519xx_info info = { 0 };
+ struct es519xx_info info;
+ memset(&info, 0, sizeof(struct es519xx_info));
info.baudrate = 19200;
info.packet_size = 11;
*/
SR_PRIV gboolean sr_es519xx_19200_14b_packet_valid(const uint8_t *buf)
{
- struct es519xx_info info = { 0 };
+ struct es519xx_info info;
+ memset(&info, 0, sizeof(struct es519xx_info));
info.baudrate = 19200;
info.packet_size = 14;
*/
SR_PRIV gboolean sr_es519xx_19200_14b_sel_lpf_packet_valid(const uint8_t *buf)
{
- struct es519xx_info info = { 0 };
+ struct es519xx_info info;
+ memset(&info, 0, sizeof(struct es519xx_info));
info.baudrate = 19200;
info.packet_size = 14;
info.selectable_lpf = TRUE;