First implementation of firmware upgrade via 1722.1
Removes warnings about signess of parameters