mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
Flashing STM32 requires the EC UART. The path of EC UART PTY was originally set under some conditions which didn't reflect the case. Instead of fixing these conditions, this change simply moves it inside flash_stm32() as other flash functions don't need EC UART PTY. BRANCH=none BUG=b:67010776 TEST=Used servo-micro to flash_ec a STM32 EC, no error on getting EC UART PTY. Change-Id: I20c31de8e6c7a99fde259f4f397e53325ee80b07 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/745101 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Nick Sanders <nsanders@chromium.org>