diff -r 942573423a60 -r fa67e03b87df adaptationlayer/modematadaptation/modematext_dll/src/modemat_atext.cpp --- a/adaptationlayer/modematadaptation/modematext_dll/src/modemat_atext.cpp Fri Jan 22 10:04:04 2010 +0200 +++ b/adaptationlayer/modematadaptation/modematext_dll/src/modemat_atext.cpp Wed Feb 17 13:58:55 2010 +0200 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of the License "Eclipse Public License v1.0" @@ -20,8 +20,6 @@ #include "modemat_atext.h" #include "modemattrace.h" -const TInt KMaxCommandCount(137); - const char* const atCommands[] = { ("ATS0"), @@ -161,8 +159,11 @@ ("AT"), ("LAST") }; - const TInt KPartLength = KDefaultCmdBufLength; - const TInt KPackets = 10; + +const TInt KMaxCommandCount(sizeof(atCommands)/sizeof(const char*)); + +const TInt KPartLength = KDefaultCmdBufLength; +const TInt KPackets = 10; _LIT8(KATDCommand,"ATD"); _LIT8(KATICommand,"ATI");