Commit 6c6217e8 authored by Rajavardhan Gundi's avatar Rajavardhan Gundi Committed by Anas Nashif
Browse files

boards: intel_s1000_crb: declare some variables as global



write_buf and flash_content should be defined as global inside
main. Otherwise Python treats them as local variables and ends
up throwing an error because it thinks they are being used
without being defined.

Signed-off-by: default avatarRajavardhan Gundi <rajavardhan.gundi@intel.com>
parent 9f04c741
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -161,6 +161,7 @@ def parse_args():
    args = parser.parse_args()

def main():
    global flash_content, write_buf
    parse_args()

    in_file_size = os.path.getsize(args.in_file)