diff options
Diffstat (limited to 'util')
-rwxr-xr-x | util/flash_ec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec index 1d25112abc..5a7b112163 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -285,7 +285,8 @@ on_servov3() { # Returns 0 on success (if raiden should be used instead of servo) on_raiden() { - if $(in_array "${BOARDS_RAIDEN[@]}" "${BOARD}") && \ + if ([ -z "${BOARD}" ] || \ + $(in_array "${BOARDS_RAIDEN[@]}" "${BOARD}")) && \ [ "${FLAGS_raiden}" = ${FLAGS_TRUE} ] ; then return 0 fi |