Skip to content

Commit

Permalink
Fix Romi firmware upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson committed Feb 7, 2023
1 parent 41431b2 commit 44ed823
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deps/tools/configServer/src/RomiStatus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ void RomiStatus::FirmwareUpdate(std::function<void(std::string_view)> onFail) {
// create pipe to capture stdout
auto pipe = uv::Pipe::Create(m_loop);
if (auto proc = uv::Process::Spawn(
m_loop, "/usr/bin/python",
m_loop, "/usr/bin/python3",
pipe ? uv::Process::StdioCreatePipe(1, *pipe, UV_WRITABLE_PIPE)
: uv::Process::Option(),
"/usr/bin/python", "/usr/src/wpilib-ws-romi/scripts/uploadRomi.py")) {
"/usr/bin/python3", "/usr/src/wpilib-ws-romi/scripts/uploadRomi.py")) {
// send stdout output to firmware log
if (pipe) {
pipe->StartRead();
Expand Down
2 changes: 1 addition & 1 deletion stage5/01-sys-tweaks/files/uploadRomi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3 -u
#!/usr/bin/env python3

# This file uploads to the Romi using a USB cable

Expand Down

0 comments on commit 44ed823

Please sign in to comment.