tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
604 stars 188 forks source link

rtl8720dn: improve error handling #437

Closed sago35 closed 2 years ago

sago35 commented 2 years ago

This PR improves error handling when trying to access https without calling SetRootCA().

after:

error: Connection failed: root_ca is not set

before:

panic: runtime error: nil pointer dereference
deadprogram commented 2 years ago

Thank you @sago35