DJ,
Just stopped back to finally read your reply. Glad I did.
Quote:
Originally Posted by DJBecker
Actually, I thought that you would be a little miffed at a pointless conversion from carefully written, tight ASM into C code that inevitably takes more code and data space.
|
For the record I was not “miffed” by you converting my code to C. Once posted I consider it public. Anyone can do with it what they like! In fact, it has value for me since the comparison to my assembled version may help me understand code construction under C a little better. Anyone else interested in modifying the LCD firmware who has programmed PIC’s in C but not PIC assembler would find it invaluable as well. Sure it’ll take up more code space but I’m only using 2K of the available 8K so there should be plenty to spare.
What miffed me were the unnecessary negative comments directed at me in your posted source code. However, since you pointed out you routinely review the code of coworkers, it might simply be habit to add such frank criticism
Quote:
hope you understand that the real point of this was so that I could write a CAN bus extension for you. To do that I needed to get a better understanding of your code so that I could make minimal changes. If you look at the CAN add-on I did for the Cougar code, I managed to hook into it with only two lines added to the main source file
|
I am aware of your desire to have all the open source components talk to each other over CAN bus (i.e. bms, controller, display) which I agree 100% is the way to go. I was unaware however that you were using the conversion of my code back to C as a way to better understand it. Then perhaps the negative comments where more akin to you making observations to yourself??
Maybe you should have made two versions- One “as is” for personal reference, and one with the negative comments about the author’s code removed for public viewing. Particularly if you plan to share it on the thread of said author!
In closing let me say that after reviewing several of your posts I find you very knowledgable in both software and hardware arenas and consider your contributions to ecomodder enlightening. I also appreciate your reassessment of the code construction once you realized this was my second attempt at coding (well, excluding some limited assembly I wrote some 25 years ago on the Intel 8088).
Carry on Mr Becker!