diff --git a/resources/DPP_FW_2.0.1_b5ee21f8.bin b/resources/DPP_FW_2.0.1_b5ee21f8.bin deleted file mode 100644 index 2bf3620..0000000 Binary files a/resources/DPP_FW_2.0.1_b5ee21f8.bin and /dev/null differ diff --git a/resources/duckypad_v2.0.0.dfu b/resources/duckypad_v2.0.0.dfu deleted file mode 100644 index b8b3734..0000000 Binary files a/resources/duckypad_v2.0.0.dfu and /dev/null differ diff --git a/src/duckypad_config.py b/src/duckypad_config.py index d4c5dcb..136a6e7 100644 --- a/src/duckypad_config.py +++ b/src/duckypad_config.py @@ -233,6 +233,9 @@ def get_monospace_font(): family = "Courier" return (family, 10) +def get_import_name_to_strlist_dict(): + return {global_header_source_tag_NO_SPACE:this_global_setting.global_header_line_list} + def reset_key_button_relief(): for item in key_button_list: item.config(borderwidth=1, relief="solid") @@ -856,14 +859,15 @@ def compile_all_scripts(): continue text_list = make_final_script(this_key, this_key.script.lstrip().split('\n')) obj_list = make_list_of_ds_line_obj_from_str_listing(text_list) - comp_result = dsvm_make_bytecode.make_dsb_with_exception(obj_list) + + comp_result = dsvm_make_bytecode.make_dsb_with_exception(obj_list, import_name_to_strlist_dict=get_import_name_to_strlist_dict()) if comp_result.is_success is False: raise ValueError("Compile failed") this_key.binary_array = comp_result.bin_array if len(this_key.script_on_release.lstrip()) > 0: tl_or = make_final_script(this_key, this_key.script_on_release.lstrip().split('\n')) ol_or = make_list_of_ds_line_obj_from_str_listing(tl_or) - comp_result = dsvm_make_bytecode.make_dsb_with_exception(ol_or) + comp_result = dsvm_make_bytecode.make_dsb_with_exception(ol_or, import_name_to_strlist_dict=get_import_name_to_strlist_dict()) if comp_result.is_success is False: raise ValueError("Compile failed") this_key.binary_array_on_release = comp_result.bin_array @@ -2049,10 +2053,9 @@ def repeat_func(): root.after(500, repeat_func) - -THIS_DUCKYPAD.device_type = THIS_DUCKYPAD.dp24 -select_root_folder("sample_dp24", is_dir_for_dp24=True) -edit_header_button_click(this_global_setting) +# THIS_DUCKYPAD.device_type = THIS_DUCKYPAD.dp24 +# select_root_folder("sample_dp24", is_dir_for_dp24=True) +# edit_header_button_click(this_global_setting) # connect_button_click() # export_profile_click() # import_profile_click()