Skip to content

Commit e66b1ee

Browse files
Merge pull request #48 from OpenAstroTech/task/js/update-screenshots
Task/js/update screenshots
2 parents 4ab639c + c933540 commit e66b1ee

File tree

6 files changed

+15
-2
lines changed

6 files changed

+15
-2
lines changed

OATFWGUI/gui_logic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ def upload_fw(self):
368368
@Slot()
369369
def pio_upload_finished(self):
370370
log.info(f'platformio upload finished')
371-
self.avr_dude_logwatch.stop()
371+
if self.logic_state.env_is_avr_based():
372+
self.avr_dude_logwatch.stop()
372373
exit_code = external_processes['platformio'].qproc.exitCode()
373374
if exit_code == 0:
374375
log.info('Normal exit')

OATFWGUI/log_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ def file_changed(self, _path: str):
123123
self.log.info(line)
124124

125125
def stop(self):
126+
if self.tempfile is None:
127+
self.log.warning('Can\'t stop watching None file?')
128+
return
126129
self.log.debug(f'Cleaning up logged external file {self.tempfile.name}')
127130
self.tempfile.close()
128131
self.file_watcher.removePath(self.tempfile.name)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OpenAstroTech FirmWare Graphical User Interface -- A graphical way to build and
66
- Linux 64 bit
77
- Requires Python 3.7..3.11, git, libc >= 2.28 (check with `ldd --version`)
88

9-
MacOS _might_ work, don't have a mac to test on. Drop a line if you're willing to test it!
9+
MacOS support [is in progress](https://github.com/OpenAstroTech/OATFWGUI/commits/feature/js/official-mac-support/), but isn't reliable yet.
1010

1111
## Installing
1212
Simply download the [latest release](https://github.com/OpenAstroTech/OATFWGUI/releases), unzip and run:

assets/screenshot_Linux.jpg

-4.59 KB
Loading

assets/screenshot_Windows.jpg

-159 KB
Loading

scripts/OATFWGUI_Linux.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,19 @@ function set_supported_python_path {
8181
# python not available either
8282
echo "Could not find a python install. (tried python3, python)."
8383
echo "Please install python3"
84+
echo "
85+
If you know you have python installed, try overriding the PYTHON environment variable when starting this script
86+
i.e. PYTHON=/usr/bin/python3.9 ./OATFWGUI_Linux.sh"
8487
exit 1
8588
else
8689
# python is a command
8790
PYTHON=$(command -v python)
8891
if ! check_py_version; then
8992
# check_py_version already gives an error message
9093
echo "python version is not valid (tried python3, but it's not installed)"
94+
echo "
95+
If you have another version of python installed, try overriding the PYTHON environment variable when starting this script
96+
i.e. PYTHON=/usr/bin/python3.9 ./OATFWGUI_Linux.sh"
9197
exit 1
9298
fi
9399
# Ok! python is a valid command, and is a supported version
@@ -98,6 +104,9 @@ function set_supported_python_path {
98104
if ! check_py_version; then
99105
# check_py_version already gives an error message
100106
echo "python3 version is not valid"
107+
echo "
108+
If you have another version of python installed, try overriding the PYTHON environment variable when starting this script
109+
i.e. PYTHON=/usr/bin/python3.9 ./OATFWGUI_Linux.sh"
101110
exit 1
102111
fi
103112
fi

0 commit comments

Comments
 (0)