From 621951f38a16679e2398a0ea9ead3ed8b890102b Mon Sep 17 00:00:00 2001 From: follower Date: Sat, 8 Dec 2007 03:33:47 +0000 Subject: [PATCH] Simplify state machine defs and remove unneeded ones. git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@83 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b --- .../follower/wiz810mj/src/demo/WizDemo3/WizDemo3.pde | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/branches/follower/wiz810mj/src/demo/WizDemo3/WizDemo3.pde b/branches/follower/wiz810mj/src/demo/WizDemo3/WizDemo3.pde index 5bd8be9..7c20cf6 100644 --- a/branches/follower/wiz810mj/src/demo/WizDemo3/WizDemo3.pde +++ b/branches/follower/wiz810mj/src/demo/WizDemo3/WizDemo3.pde @@ -265,25 +265,20 @@ void loop() { int dataLength = 0; -#define STATE_G 0 -#define STATE_E 1 -#define STATE_T 2 -#define STATE_SPACE 3 -#define STATE_SLASH 4 - +#define STATE_GET 0 #define STATE_READ 5 #define STATE_END -2 #define STATE_ERR -1 - int state = STATE_G; + int state = STATE_GET; int ledState = 1; unsigned char theByte; while (getSn_SR(testSocket) == SOCK_ESTABLISHED) { while (getSn_RX_RSR(testSocket) > 0) { - if (state == STATE_G) { + if (state == STATE_GET) { if (readMatch("GET /")) { state = STATE_READ; } else {