Skip to content

Commit

Permalink
Merge branch 'fix-default-value' into 'master'
Browse files Browse the repository at this point in the history
Use a default value which allow to read the very first index

See merge request limagroup/Lima-tango-python!104
  • Loading branch information
sdebionne committed Nov 15, 2024
2 parents 819ebb8 + 090eb8d commit 12abcfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lima/Server/LimaCCDs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ def readImage(self, frame_number):
#
# @returns Image if new image available since last_frame_number else None
@Core.DEB_MEMBER_FUNCT
def readLastImage(self, last_frame_number=0):
def readLastImage(self, last_frame_number=-1):
deb.Param("readLastImage: last_frame_number=%d" % last_frame_number)
status = self.__control.getStatus()
last_img_ready = status.ImageCounters.LastImageReady
Expand Down

0 comments on commit 12abcfa

Please sign in to comment.