/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to ipecamera/reader.c

  • Committer: Suren A. Chilingaryan
  • Date: 2011-12-12 14:27:13 UTC
  • Revision ID: csa@dside.dyndns.org-20111212142713-xwpcvv6j5d3zmnvx
Minor fixes and improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
            ctx->frame[ctx->buffer_pos].event.info.seqnum = ((uint32_t*)buf)[6] & 0xF0000000;
76
76
            ctx->frame[ctx->buffer_pos].event.info.offset = ((uint32_t*)buf)[7] & 0xF0000000;
77
77
*/
 
78
            ctx->frame[ctx->buffer_pos].event.info.seqnum = ctx->event_id + 1;
 
79
 
78
80
            gettimeofday(&ctx->frame[ctx->buffer_pos].event.info.timestamp, NULL);
79
81
        } else {
80
82
//          pcilib_warning("Frame magic is not found, ignoring broken data...");
156
158
                }
157
159
                usleep(IPECAMERA_NOFRAME_SLEEP);
158
160
            } else pcilib_error("DMA error while reading IPECamera frames, error: %i", err);
159
 
        } else printf("no error\n");
 
161
        } //else printf("no error\n");
160
162
 
161
163
        //usleep(1000);
162
164
    }