PiInTheSky / lora-gateway

LoRa gateway to Habitat
96 stars 69 forks source link

gateway.c: Only change GCC packing for TBinaryPacket struct #49

Closed philcrump closed 6 years ago

philcrump commented 6 years ago

Separating these minor code tweaks out as they're not really part of the HABpack changeset.

This caught me out when playing with structs at the bottom of gateway.c, couldn't work out why functions outside gateway.c were handling the same struct differently!

Instead this just changes the packing for the declaration of the binary packet struct, then changes it back.

philcrump commented 6 years ago

Folded into #50