Branch: Tag:

2020-04-27

2020-04-27 13:22:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocol: Cleaned up defvar initialization.

Reduces code compexity somewhat.

The main benefit is that Variable()->decode() now gets called
for protocol variables.

Needed for [WS-580].

2242:    void restore()    //! Restore all port options from saved values    { -  foreach( (array)get_port_options( get_key() ), array kv ) -  set( kv[0], kv[1] ); +  setvars(get_port_options( get_key() ));    }       protected int retries;