From 55d5dda36701cda2857f38ba7d60bd40f2c5e51a Mon Sep 17 00:00:00 2001 From: Octasic Inc Date: Mon, 20 Mar 2006 17:11:56 +0200 Subject: importing OCT612x-01.00-PR40 --- software/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'software/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.c') 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. */ -- cgit v1.2.3