projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tag for the LUFA-120730-BETA release.
[pub/USBasp.git]
/
Demos
/
Device
/
Incomplete
/
TestAndMeasurement
/
TestAndMeasurement.c
diff --git
a/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c
b/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c
index
5102f10
..
027264a
100644
(file)
--- a/
Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c
+++ b/
Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.c
@@
-71,7
+71,7
@@
static uint16_t LastTransferLength = 0;
static uint8_t NextResponseBuffer[64];
/** Indicates the length of the next response to send */
static uint8_t NextResponseBuffer[64];
/** Indicates the length of the next response to send */
-static uint8_t NextReponseLen;
+static uint8_t NextRe
s
ponseLen;
/** Main program entry point. This routine contains the overall program flow, including initial
* setup of all components and the main program loop.
/** Main program entry point. This routine contains the overall program flow, including initial
* setup of all components and the main program loop.
@@
-326,16
+326,16
@@
void ProcessSentMessage(uint8_t* const Data, const uint8_t Length)
if (strncmp((char*)Data, "*IDN?", 5) == 0)
strcpy((char*)NextResponseBuffer, "LUFA TMC DEMO");
if (strncmp((char*)Data, "*IDN?", 5) == 0)
strcpy((char*)NextResponseBuffer, "LUFA TMC DEMO");
- NextReponseLen = strlen((char*)NextResponseBuffer);
+ NextRe
s
ponseLen = strlen((char*)NextResponseBuffer);
}
uint8_t GetNextMessage(uint8_t* const Data)
{
strcpy((char*)NextResponseBuffer, "LUFA TMC DEMO");
}
uint8_t GetNextMessage(uint8_t* const Data)
{
strcpy((char*)NextResponseBuffer, "LUFA TMC DEMO");
- NextReponseLen = strlen((char*)NextResponseBuffer);
+ NextRe
s
ponseLen = strlen((char*)NextResponseBuffer);
// ---
// ---
- uint8_t DataLen = MIN(NextReponseLen, 64);
+ uint8_t DataLen = MIN(NextRe
s
ponseLen, 64);
strlcpy((char*)Data, (char*)NextResponseBuffer, DataLen);
strlcpy((char*)Data, (char*)NextResponseBuffer, DataLen);