Bugfix: missing braces added in serco_set()
This commit is contained in:
parent
65c50195c4
commit
235f368340
1 changed files with 8 additions and 2 deletions
|
@ -137,11 +137,17 @@ servo_set(unsigned i,unsigned int j)
|
||||||
j=SERVO_MAX;
|
j=SERVO_MAX;
|
||||||
|
|
||||||
if(i==0)
|
if(i==0)
|
||||||
|
{
|
||||||
servoa=j;
|
servoa=j;
|
||||||
OCR1A = SERVO_OFFSET + servoa;
|
OCR1A = SERVO_OFFSET + servoa;
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
if(i==1)
|
if(i==1)
|
||||||
|
{
|
||||||
servob=j;
|
servob=j;
|
||||||
OCR1A = SERVO_OFFSET + servob;
|
OCR1A = SERVO_OFFSET + servob;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue