[OpenBIOS] r349 - dev/olpc/cafecamera

svn at openbios.org svn at openbios.org
Thu May 3 10:30:22 CEST 2007


Author: wmb
Date: 2007-05-03 10:30:22 +0200 (Thu, 03 May 2007)
New Revision: 349

Modified:
   dev/olpc/cafecamera/cafecamera.fth
Log:
CaFe camera driver - Minor change in the ordering of the open routine, so the
first-time? flag doesn't get cleared if the open failed.  This makes it easier
to debug failed opens because you can retry and the init process will be redone.









Modified: dev/olpc/cafecamera/cafecamera.fth
===================================================================
--- dev/olpc/cafecamera/cafecamera.fth	2007-05-03 08:28:56 UTC (rev 348)
+++ dev/olpc/cafecamera/cafecamera.fth	2007-05-03 08:30:22 UTC (rev 349)
@@ -458,8 +458,9 @@
 
 : open  ( -- flag )
    map-regs
-   first-open?  if  init false to first-open?  then
+   first-open?  if  init  then
    ov7670-detected? 0=  if  unmap-regs false exit  then
+   false to first-open? 
    alloc-dma-bufs
    read-setup
    true




More information about the OpenBIOS mailing list