Close

New Firmware and Software Releases

A project log for PD Buddy Sink

Smart power jack for USB Power Delivery

clara-hobbsClara Hobbs 06/19/2017 at 21:010 Comments

I just made two new releases: PD Buddy Sink Firmware v1.0.1 and pd-buddy-python v0.2.1. These are both minor bugfix releases, fixing bounds checking for setting invalid voltages and currents through the configuration interface.

Previously, the firmware allowed the user to set voltages and currents greater than what USB Power Delivery allows. Also, the Python library gave no indication when setting the voltage or current failed. These bugs are both fixed now: the firmware accepts only voltages in the range [0 mV, 20000 mV] and currents in the range [0 mA, 5000 mA]. When the firmware rejects a voltage or current value, the Python library now raises a ValueError in response. After all, errors should never pass silently.

Discussions