Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#8755][하드웨어] 마이크로비트 firmwareFlash 지원여부 속성추가 #2900

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/class/hw_lite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export default class HardwareLite {
}

setFlasher() {
if (this.hwModule.firmwareFlash) {
if (this.hwModule.supportFirmwareFlash) {
this.flasher = new WebUsbFlasher();
}
}
Expand Down
1 change: 1 addition & 0 deletions src/playground/blocks/hardwareLite/block_microbit2_lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ const EVENT_INTERVAL = 150;
this.id = '220301';
this.url = 'http://microbit.org/ko/';
this.imageName = 'microbit2lite.png';
this.supportFirmwareFlash = true;
this.title = {
en: 'Microbit V2',
ko: '마이크로비트 V2',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const convertPresetImageToLedState = (preset) => {
Entry.Microbit2BleLite = new (class Microbit2LiteBle {
constructor() {
this.webapiType = 'ble';
this.firmwareFlash = true;
this.supportFirmwareFlash = true;
this.bluetoothInfo = {
filters: [
{
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export declare interface EntryHWLiteBaseModule extends EntryBlockModule {
type?: 'master' | 'slave';
delimeter?: string | number;
webapiType?: 'ble' | 'usb' | 'serial';
firmwareFlash?: boolean;
supportFirmwareFlash?: boolean;

// 필수 함수 목록
setZero: () => void;
Expand Down
Loading