Margin isn't everything, it's a very stable business with a very wide technological and regulatory moat. Add to that fierce brand loyalty among pilots and it's a great business IMO.
Personal electronics (unless you are Apple basically) is a pretty fickle business and fortunes can change very rapidly. Aviation? Not so much, unless you chuck a Boeing.