Skip to content

Commit

Permalink
Removed unneeded code from NanoVNA_F
Browse files Browse the repository at this point in the history
Regarding to @sysjoint-tek changes, getScreenshot method is identical
to base class "NanoVNA"
  • Loading branch information
zarath committed Oct 1, 2020
1 parent b752098 commit c4c2f2c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions NanoVNASaver/Hardware/NanoVNA_F.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,3 @@ class NanoVNA_F(NanoVNA):
name = "NanoVNA-F"
screenwidth = 800
screenheight = 480

def getScreenshot(self) -> QtGui.QPixmap:
logger.debug("Capturing screenshot...")
if not self.connected():
return QtGui.QPixmap()
try:
rgba_array = self._capture_data()
image = QtGui.QImage(
rgba_array,
self.screenwidth, self.screenheight,
QtGui.QImage.Format_ARGB32)
logger.debug("Captured screenshot")
return QtGui.QPixmap(image)
except serial.SerialException as exc:
logger.exception("Exception while capturing screenshot: %s", exc)
return QtGui.QPixmap()

0 comments on commit c4c2f2c

Please sign in to comment.