File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 15
15
16
16
/**
17
17
* Fires when the RFID entered.
18
- *
18
+ *
19
19
* @event RFIDEvent.ENTER
20
20
*/
21
21
ENTER : 'enter' ,
22
22
23
23
/**
24
24
* Fires when the RFID leaved.
25
- *
25
+ *
26
26
* @event RFIDEvent.LEAVE
27
27
*/
28
28
LEAVE : 'leave'
32
32
* The RFID class.
33
33
*
34
34
* RFID reader is used to track nearby tags by wirelessly reading a tag's unique ID.
35
- *
35
+ *
36
36
* @namespace webduino.module
37
37
* @class RFID
38
38
* @constructor
63
63
}
64
64
65
65
if ( msg . length === 1 ) {
66
- val = 0 ;
67
66
_this . _leaveHandlers . forEach ( function ( fn , idx , ary ) {
68
67
fn . call ( _this , val ) ;
69
68
} ) ;
70
69
_this . emit ( RFIDEvent . LEAVE , val ) ;
70
+ val = null ;
71
71
} else {
72
72
val = String . fromCharCode . apply ( null , msg ) ;
73
73
_this . _enterHandlers . forEach ( function ( fn , idx , ary ) {
84
84
85
85
/**
86
86
* The state indicating whether the module is reading.
87
- *
87
+ *
88
88
* @attribute isReading
89
89
* @type {Boolean } isReading
90
90
* @readOnly
You can’t perform that action at this time.
0 commit comments