The statement modbus_cmd_rd_hreg_t holding_cmd = {}; works.
The statement holding_cmd = {}; doesn't work.
Mea culpa!
Geraldo
--- In [email protected], "John" <jm5...@...> wrote:
>
> --- In [email protected], "py2akv" <gdb@> wrote:
> >
> > I cannot explain, but I had an inspiration to initialize a structure object
> > to zero with an empty set while it was being declared and... it worked!
> >
> > WNDCLASS wc={};
>
> That's standard, but your comment was "or simply holding_cmd = {}; if you may
> already have declared holding_cmd", which I interpreted as meaning the
> following would work:
>
> WNDCLASS wc;
> wc = {};
>
> Does that work on your compiler?
>