File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ export class MicrobitWebBluetoothConnection
300
300
return magnetometerService ?. triggerCalibration ( ) ;
301
301
}
302
302
303
- async writeUART ( data : Uint8Array ) : Promise < void > {
303
+ async uartWrite ( data : Uint8Array ) : Promise < void > {
304
304
const uartService = await this . connection ?. getUARTService ( ) ;
305
305
uartService ?. writeData ( data ) ;
306
306
}
Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ const createUARTSection = (): Section => {
333
333
{
334
334
onclick : async ( ) => {
335
335
const encoded = new TextEncoder ( ) . encode ( dataToWrite ) ;
336
- await bluetoothConnection ?. writeUART ( encoded ) ;
336
+ await bluetoothConnection ?. uartWrite ( encoded ) ;
337
337
} ,
338
338
} ,
339
339
"Write to micro:bit" ,
You can’t perform that action at this time.
0 commit comments