Commit 21e640b4 authored by alex@thinkpad's avatar alex@thinkpad
Browse files

api_test.lua: fix bulb test on slow SD cameras

--HG--
branch : lua_fix
parent 9afd356dd8c9
......@@ -676,7 +676,8 @@ function test_camera_take_pics()
local elapsed = t1 - t0
printf("Elapsed time: %s\n", elapsed)
-- we can't measure this time accurately, so we only do a very rough check
assert(elapsed > 9900 and elapsed < 16000)
-- slow cards may be an issue, so let's allow a wide error margin
assert(elapsed > 9900 and elapsed < 30000)
assert((dryos.shooting_card.file_number - initial_file_num) % 10000 == 1)
printf("Picture taking tests completed.\n")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment