DCC-EX / CommandStation-EX

EX-CommandStation firmware from DCC-EX. Includes support for WiFi and a standalone WiThrottle server. A complete re-write of the original DCC++.
https://dcc-ex.github.io/
GNU General Public License v3.0
157 stars 108 forks source link

Update DCC.cpp #165

Closed Ash-4 closed 3 years ago

Ash-4 commented 3 years ago

lines 907-910 added. avoid wait after write. use 1 PROG This was the code Harald provided. https://discord.com/channels/@me/743273217069809666/844623437808795658

Using <1 PROG> prior to reading full sheets in JMRI. It can make a significant difference when there are large numbers of indexed CVs.

Chris noted:

The delay will exist if you issue any writing command and (prog power is off OR prog is joined)

The ack manager restores the power state and join state after any prog command... During the command the power must be on and not joined.. so if the prog power is already on and not joined, it doesn't have to mess with anything

FrightRisk commented 3 years ago

eliminate wait after write when prog is joined or prog power is off