git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfix for pin code and remove unused luts
[matches/MCTX3420.git]
/
server
/
pin_test.c
diff --git
a/server/pin_test.c
b/server/pin_test.c
index
2ef0612
..
b22cc13
100644
(file)
--- a/
server/pin_test.c
+++ b/
server/pin_test.c
@@
-175,7
+175,7
@@
void Pin_Handler(FCGIContext *context, char * params)
}
else if (strcmp(type, "pwm") == 0)
{
}
else if (strcmp(type, "pwm") == 0)
{
- if (num < 0 || num >= PWM_NUM_
SAFE_
PINS)
+ if (num < 0 || num >= PWM_NUM_PINS)
{
FCGI_RejectJSON(context, "Invalid PWM pin");
return;
{
FCGI_RejectJSON(context, "Invalid PWM pin");
return;
@@
-201,7
+201,7
@@
void Pin_Handler(FCGIContext *context, char * params)
else
{
Log(LOGDEBUG, "Stopping PWM%d",num);
else
{
Log(LOGDEBUG, "Stopping PWM%d",num);
- PWM_Stop(
g_pin_safe_pwm[num]
);
+ PWM_Stop(
num
);
FCGI_PrintRaw("Content-type: text/plain\r\n\r\n");
FCGI_PrintRaw("PWM%d stopped",num);
}
FCGI_PrintRaw("Content-type: text/plain\r\n\r\n");
FCGI_PrintRaw("PWM%d stopped",num);
}
UCC
git Repository :: git.ucc.asn.au