artiq_flash: fix sayma master detection

This commit is contained in:
Sebastien Bourdeauducq 2019-03-08 19:36:35 +08:00
parent 25bcebd1f6
commit fc9d4c7bdc

View File

@ -339,7 +339,7 @@ def main():
gateware_bin = convert_gateware(
artifact_path(variant, "gateware", "top.bit"))
programmer.write_binary(*config["gateware"], gateware_bin)
if args.target == "sayma" and args.variant != "master":
if args.target == "sayma" and variant != "master":
rtm_gateware_bin = convert_gateware(
artifact_path("rtm_gateware", "rtm.bit"), header=True)
programmer.write_binary(*config["rtm_gateware"],