Skip to content

Commit 31ccf33

Browse files
committed
Fixed parameters of binary_hook functions
1 parent 82b58af commit 31ccf33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

workspace_tools/targets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def init_hooks(self, hook, toolchain_name):
193193
hook.hook_add_binary("post", self.binary_hook)
194194

195195
@staticmethod
196-
def binary_hook(t_self, elf, binf):
196+
def binary_hook(t_self, resources, elf, binf):
197197
if not os.path.isdir(binf):
198198
# Regular binary file, nothing to do
199199
return
@@ -393,8 +393,8 @@ def init_hooks(self, hook, toolchain_name):
393393
hook.hook_add_binary("post", self.binary_hook)
394394

395395
@staticmethod
396-
def binary_hook(t_self, elf, binf):
397-
for hexf in t_self.resources.hex_files:
396+
def binary_hook(t_self, resources, elf, binf):
397+
for hexf in resources.hex_files:
398398
if hexf.find(NRF51822.EXPECTED_SOFTDEVICE) != -1:
399399
break
400400
else:

0 commit comments

Comments
 (0)