Updated reset_device to comply with official firmware and unit tests
Compiled pb