# CAMERA_GetErrorStatus

## Syntax

  `#include <twl/camera.h>`
  `BOOL CAMERA_GetErrorStatus( void );`

## Arguments

None.

## Return Values

Returns `TRUE` if an error has occurred.

## Description

Checks the error flag for the line buffer. The line buffer uses double buffering: image data from the camera module is saved into one buffer, and transferred using another buffer. The line buffers are switched when a V-Blank starts or if the line saved in the line buffer was specified by the flag for choosing the transfer line count. A value of 1 is written to the line buffer error flag if the transfer line buffer was not empty before the line buffer was switched.
When an error has occurred, stop capturing using the `CAMERA_StopCapture` function, then call the `CAMERA_ClearBuffer` function.

## See Also

`CAMERA_SetTransferLines, CAMERA_StopCapture, CAMERA_ClearBuffer`

## Revision History

2007/10/29 Added descriptions.
2007/10/02 Initial version.

CONFIDENTIAL