@@ -40,7 +40,7 @@ class FileTransferClient {
4040 this . _device = bleDevice ;
4141 this . _raw = false ;
4242 bleDevice . addEventListener ( "gattserverdisconnected" , this . onDisconnected . bind ( this ) ) ;
43- this . _onTransferNotifty = this . onTransferNotifty . bind ( this ) ;
43+ this . _onTransferNotify = this . onTransferNotify . bind ( this ) ;
4444 }
4545
4646 async onDisconnected ( ) {
@@ -73,8 +73,8 @@ class FileTransferClient {
7373 }
7474 //version ok
7575 this . _transfer = await service . getCharacteristic ( bleFileCharTransferUUID ) ;
76- this . _transfer . removeEventListener ( 'characteristicvaluechanged' , this . _onTransferNotifty ) ;
77- this . _transfer . addEventListener ( 'characteristicvaluechanged' , this . _onTransferNotifty ) ;
76+ this . _transfer . removeEventListener ( 'characteristicvaluechanged' , this . _onTransferNotify ) ;
77+ this . _transfer . addEventListener ( 'characteristicvaluechanged' , this . _onTransferNotify ) ;
7878 await this . _transfer . startNotifications ( ) ;
7979 } catch ( e ) {
8080 console . log ( "caught connection error" , e , e . stack ) ;
@@ -108,7 +108,7 @@ class FileTransferClient {
108108 //bonded internally
109109 }
110110
111- async onTransferNotifty ( event ) {
111+ async onTransferNotify ( event ) {
112112 this . _buffer . set ( new Uint8Array ( event . target . value . buffer ) , this . _offset ) ;
113113 this . _command = this . _buffer [ 0 ] ;
114114 this . _offset += event . target . value . byteLength ;
0 commit comments