totev / vodafone-station-cli

Access your Vodafone Station from the comfort of the command line.
MIT License
35 stars 8 forks source link

fix: return predefined fallbacks on bad modem values for powerLevel and snr #143

Closed totev closed 5 months ago

totev commented 1 year ago

When the modem values contain non-conformant strings for SNR and PowerLevel the diagnosis module returns NaN as described here #142

This PR contains fallbacks for SNR and PowerLevel to extremely "bad" values, so the diagnose module flags them accordingly.