We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8de670 commit a42e303Copy full SHA for a42e303
targets/esp8266/jshardware.c
@@ -529,7 +529,7 @@ bool CALLED_FROM_INTERRUPT jshPinGetValue( // can be called at interrupt time
529
) {
530
531
if ((pinInfo[pin].port & JSH_PORT_MASK) == JSH_PORTA) {
532
- return NAN;
+ return false;
533
}
534
/* handle D16 */
535
if (pin == 16) {
@@ -554,7 +554,7 @@ int jshPinAnalogFast(Pin pin) {
554
if ( pin == 255 || ( pinInfo[pin].port & JSH_PORT_MASK) == JSH_PORTA ) {
555
return (int)system_adc_read() << 6; // left-align to 16 bits
556
} else {
557
+ return 0;
558
559
560
0 commit comments