Fixed duplicate var warning
now calling checkFlashVersion()