slightlynybbled / Dispatch

Simple serial and UART library
http://www.forembed.com
MIT License
6 stars 1 forks source link

Reduce RAM usage of DIS_publish() #5

Closed slightlynybbled closed 8 years ago

slightlynybbled commented 8 years ago

Currnently, DIS_publish() will create a local array in which the data is constructed before it is sent to framing. This is a fast process, but may not be compatible with low-RAM devices.

slightlynybbled commented 8 years ago

Publishing can now occur without the use of globals in 'dispatch.c'. Only around 12 bytes (depending on defines) of local RAM will be used exclusively for publishing and with 4 bytes of globals in 'frame.c'.