We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7ab8c2 commit 1a3b711Copy full SHA for 1a3b711
ffi/input_pocketbook.lua
@@ -161,16 +161,16 @@ end
161
local function getMajorSoftwareVersion()
162
-- format is $model.$major.$minor.$build, like "U743g.6.8.4143"
163
local fwVersion = inkview.GetSoftwareVersion()
164
-
+
165
local counter = 0
166
167
for segment in string.gmatch(fwVersion, "[^.]+") do
168
- if counter == 1 then
169
- local major = tonumber(segment) or 0
170
- return major
171
- end
172
173
- counter = counter + 1
+ if counter == 1 then
+ local major = tonumber(segment) or 0
+ return major
+ end
+ counter = counter + 1
174
end
175
176
return 0
0 commit comments