Re: Peggy 2 Code help

Home Evil Mad Scientist Forums LED Matrix Kits Peggy 2 Code help Re: Peggy 2 Code help

Windell Oskay

It looks like using the “init” command multiple times may be the issue.  It allocates new memory each time that it is called, with malloc.  

That shouldn’t be an issue (and isn’t unless called in a loop!), but there doesn’t appear to be any process for freeing up the memory that is allocated.  You might be able to add a command to free up the memory: