IWPengineering / IWP_Firmware_2.0_Beta

Rewrite of IWP Firmware for PIC24F32KA302 (3.3V version of previous micro)
0 stars 1 forks source link

Malloc isn't working #3

Closed Ken-Kok closed 8 years ago

Ken-Kok commented 8 years ago

For some reason, when calling malloc(), the return is always null. I confirmed this with a step through of the function.

The solution is going to be to replace all malloc calls with arrays, and just forget about destroying arrays. This should be fine for now - malloc is only used for the queue implementation, but there is no real reason to be destroying queues in the current firmware 2.0 implementation.

Ken-Kok commented 8 years ago

I removed malloc calls from 2.0 implementation, just replaced them with various array builders.