The check for no pyro config is to compare npyros against zero rather
than check the length of the pyros array as the latter may be null.
Signed-off-by: Keith Packard <keithp@keithp.com>
/* UI doesn't support AES key config */
/* AO_PYRO_NUM */
/* UI doesn't support AES key config */
/* AO_PYRO_NUM */
- if (pyros.length > 0) {
for (int p = 0; p < pyros.length; p++) {
link.printf("c P %s\n",
pyros[p].toString());
for (int p = 0; p < pyros.length; p++) {
link.printf("c P %s\n",
pyros[p].toString());