summaryrefslogtreecommitdiff
path: root/software/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'software/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c')
-rw-r--r--software/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c
index cc40588..45e9aee 100644
--- a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c
+++ b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c
@@ -22,9 +22,9 @@ You should have received a copy of the GNU General Public License
along with the OCT6100 GPL API; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-$Octasic_Release: OCT612xAPI-01.00-PR39 $
+$Octasic_Release: OCT612xAPI-01.00-PR40 $
-$Octasic_Revision: 58 $
+$Octasic_Revision: 59 $
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
@@ -552,6 +552,11 @@ UINT32 Oct6100DebugGetDataSer(
if ( pSharedInfo->DebugInfo.fDebugDataBeingDumped == FALSE )
{
pSharedInfo->DebugInfo.fDebugDataBeingDumped = TRUE;
+
+ /* Check that the channel is not in POWER_DOWN. When the channel is in POWER_DOWN, */
+ /* the debug events are not recorded correctly in external memory. */
+ if ( pChanEntry->byEchoOperationMode == cOCT6100_ECHO_OP_MODE_POWER_DOWN )
+ return cOCT6100_ERR_DEBUG_CHANNEL_IN_POWER_DOWN;
/* Flag the hot channel that it must stop recording. The data is being transfered. */
/* This also tells the remote client not to do anything right now. */