FreeEMS Issues - Firmware
View Issue Details
0000290FirmwareSerial Commspublic2011-10-07 22:042012-07-15 22:55
Fred 
pjohns30 
normalminorN/A
closedfixed 
0.2.0-SNAPSHOT 
0.2.00.2.0 
New Feature
very low
0000290: Add Fully User Configurable Log Type
Use an array of 16 bit pointers stored in flash with another array of chars that specify the type (8, 16, 32), and a length designator that specifies how much to send. Loop through copying X bytes from pointer location to output buffer, stopping when length designator equalled or exceeded, then truncate to requested length. Not only completely flexible, also fairly fast. Perfect.

If we restrict to 16 bit vars, we can do even better speed wise, but will waste some space.
No tags attached.

Notes
(0001660)
Fred   
2012-07-14 21:25   
There is zero reason to make each pointer be 8,16,32. Instead it'll just have a matching "size to grab". This is simpler and more versatile too.
(0001661)
Fred   
2012-07-15 01:29   
Fixed in fdafad7, please test to confirm no apparent change and close if satisfied.
(0001662)
pjohns30   
2012-07-15 22:55   
Seems to be working fine on my truck.