23 Feb
2020
23 Feb
'20
3:44 a.m.
Hello, it seems that there's a problem in the implementation of template.py, or perhaps I'm not understanding it correctly.
self._memobj is populated in the self.sync_in function, but that function is only called when the image is downloaded from the radio, and not when a file is loaded by hand. In other words, the template.py implementation will crash when a file is loaded because self._memobj won't be defined by the time the memories are read.
It looks like most radio drivers have fixed this by populating self._memobj in a function called self.process_mmap, and then calling self.process_mmap from self.sync_in.
Greetings