[bug]declarations for testprogram and fix for negative loglevel values

This commit is contained in:
BigEd 2010-10-06 21:00:56 +00:00
parent a83cb1533e
commit 9705ca4093
1 changed files with 3 additions and 1 deletions

View File

@ -67,6 +67,8 @@ var userCode=[];
var userResetLow;
var userResetHigh;
var userSteps;
var testprogram=[];
var testprogramAddress;
/////////////////////////
//
@ -127,7 +129,7 @@ function setupParams(){
// be (relatively) forgiving in what we accept
//
// user interface mode control
if(name=="loglevel" && parseInt(value)>0){
if(name=="loglevel" && parseInt(value)!=NaN){
updateLoglevel(value);
} else if(name=="expert" && value.indexOf("t")==0){
updateExpertMode(true);