Changeset 188
- Timestamp:
- 02/26/2012 01:51:00 AM (16 months ago)
- File:
-
- 1 edited
-
trunk/lua/gui_live.lua (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lua/gui_live.lua
r187 r188 149 149 end 150 150 151 local function check_api_ver() 152 -- normally larger minor would be ok, but want to only work with dev version for now 153 if con.apiver.major == 2 and con.apiver.minor == 2 then 154 return true 155 end 156 end 151 157 local function update_should_run() 152 158 if not con:is_connected() or m.tabs.value ~= m.container then 159 return false 160 end 161 if not check_api_ver() then 153 162 return false 154 163 end … … 531 540 -- basedata will be reset when the new handler is obtained 532 541 m.livehandler = nil 542 if con:is_connected() then 543 -- TODO could disable live options 544 if not check_api_ver() then 545 printf('camera does not support live view api\n') 546 end 547 end 533 548 end 534 549 -- check whether we should be running, update timer
Note: See TracChangeset
for help on using the changeset viewer.