Warning
This commit is contained in:
@@ -81,7 +81,7 @@ void pinMode(unsigned char p, unsigned char mode)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char input;
|
||||
int input;
|
||||
int vKey;
|
||||
} KeyboardIO;
|
||||
|
||||
@@ -342,7 +342,7 @@ double analogRead(int p)
|
||||
|
||||
void digitalWrite(unsigned int p, int value)
|
||||
{
|
||||
if (p < 0 || p > 255)
|
||||
if (p > 255)
|
||||
{
|
||||
printf("Pin %d is out of Range.", p);
|
||||
return;
|
||||
@@ -386,7 +386,7 @@ void digitalWrite(unsigned int p, int value)
|
||||
|
||||
void analogWrite(unsigned int p, double value)
|
||||
{
|
||||
if (p < 0 || p > 31)
|
||||
if (p > 31)
|
||||
{
|
||||
printf("Pin %d is out of Range.", p);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user