nerves-networking / vintage_net_mobile

Mobile networking for VintageNet
Apache License 2.0
27 stars 11 forks source link

Refactor service provider validation back into normalization #49

Closed fhunleth closed 4 years ago

fhunleth commented 4 years ago

This finishes a previous refactor that added normalize/1 to the modem implementations. Since that function existed, also having the special case for validating service providers seemed silly. This adds a common case service provider validator that gives a somewhat helpful message if you mess it up.