diff --git a/jasper_library/yellow_blocks/sys_block.py b/jasper_library/yellow_blocks/sys_block.py index abe89937e4..26bd3b425d 100644 --- a/jasper_library/yellow_blocks/sys_block.py +++ b/jasper_library/yellow_blocks/sys_block.py @@ -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),