Skip to content

Commit

Permalink
Merge pull request #125 from casper-astro/sys-block-scratchpad-fix
Browse files Browse the repository at this point in the history
Give sys_block scratchpad a default value
  • Loading branch information
jack-h authored May 28, 2020
2 parents a9e87d9 + 9a8c7ea commit ee6841c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jasper_library/yellow_blocks/sys_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
class sys_block(YellowBlock):
def initialize(self):
self.typecode = TYPECODE_SYSBLOCK
self.add_source('sys_block')
self.add_source('sys_block')
if not hasattr(self, 'scratchpad'): self.scratchpad = 0
# the internal memory_map
self.memory_map = [
Register('sys_board_id', mode='r', offset=0, default_val=self.board_id),
Expand Down

0 comments on commit ee6841c

Please sign in to comment.