unterwulf / egctl

EnerGenie EG-PMS-LAN control utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Double conversion in case of LE host

mlukoshkov opened this issue · comments

inline uint16_t host_to_le16(uint16_t hostu16)
{
return swap16(htons(hostu16));
}

It was implemented like this intentionally because in this particular project nobody on the Earth could see the performance gain of such an optimization, but at the same time it would result in more complicated source code or build procedure.

Nevertheless, after cc65e2e there is nothing to discuss anymore :)