Fix factory reset command in Bluetooth HID flow

Command mode must be entered before the factory reset command can be
issued. Currently the code attempts a factory reset, but that may not
happen.

BUG=None
TEST=Run this code on the Chameleon board:
$ make && make remote-install CHAMELEON_HOST=$CHAMELEON_IP
Execute the non-flaky non-stress tests that use this code,
see that the tests pass:
$ test_that --board ${BOARD} --args "chameleon_host=${CHAMELEON_IP}" \
${DUT_IP} bluetooth_AdapterPairing.mouse \
bluetooth_AdapterPairing.mouse.pairing_twice \
bluetooth_AdapterHIDReports.mouse

Change-Id: Ifbdb7fff66fe188bda00b8a02e09da62951230fd
Reviewed-on: https://chromium-review.googlesource.com/634273
Commit-Ready: Alexander Lent <alent@google.com>
Tested-by: Alexander Lent <alent@google.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
1 file changed