k4kfh / ZephyrCab

Drive a model train with prototypical controls, realistic behavior, and simulated physics; uses JMRI's WebSockets interface for layout connection
http://k4kfh.github.io/ZephyrCab
GNU Affero General Public License v3.0
10 stars 4 forks source link

Generic decoder fallback not recognizing when needed #36

Open k4kfh opened 6 years ago

k4kfh commented 6 years ago

There is a bug where if you have a decoder in a certain family, Zephyrcab thinks all decoders in that family are supported. For example, I have one LokSound decoder that is supported, and one that isn't (and thus should use the generic generic decoder object). Unfortunately it sees the ESU LokSound family as being supported, and then only discovers that's not the case with a nasty undefined error a little down the line. Easy to fix.