global-functions: $DeviceInfo: do not fail on non-RouterBoard with ROS 7.x

This commit is contained in:
Christian Hesse 2021-10-01 09:00:36 +02:00
parent 4ebe2628b0
commit f780b205a9

View file

@ -198,7 +198,10 @@
:global IfThenElse; :global IfThenElse;
:local Resource [ / system resource get ]; :local Resource [ / system resource get ];
:local RouterBoard [ / system routerboard get ]; :local RouterBoard;
:do {
:set RouterBoard [ / system routerboard get ];
} on-error={ }
:local Update [ / system package update get ]; :local Update [ / system package update get ];
:return ( \ :return ( \