Skip to content

Commit

Permalink
Merge pull request #2832 from entrylabs/develop
Browse files Browse the repository at this point in the history
4.40.0 master hw
  • Loading branch information
Tnks2U authored Sep 25, 2024
2 parents 8b6c79a + 6750a2d commit 64090a2
Show file tree
Hide file tree
Showing 15 changed files with 15,464 additions and 2,831 deletions.
2 changes: 2 additions & 0 deletions extern/lang/ko.js
Original file line number Diff line number Diff line change
Expand Up @@ -5551,6 +5551,8 @@ Lang.Workspace = {
progress_firmware_hwlite_step2_title: '펌웨어 설치',
progress_firmware_hwlite_step2_content1: '펌웨어를 설치하고 있습니다.\n잠시만 기다려 주세요.',
progress_firmware_hwlite_step2_content_complete: '펌웨어 설치가 완료되었습니다.',
usbconnect_fail_alert:
"기기 연결에 실패했습니다. 연결 상태를 확인하고 '다시 선택'을 눌러 주세요.",
progress_firmware_hwlite_step2_content_fail: '펌웨어 설치에 실패했습니다.',
progress_firmware_hwlite_step2_content_select: '설치할 펌웨어 버전을 선택해 주세요',
select_hwlite_block_duplicated: '1개의 하드웨어만 선택해 주세요.',
Expand Down
Binary file added images/hw_lite/robotis_robotai_lite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/class/hardware/webUsbFlasher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class WebUsbFlasher {

// INFO: 연결된 기기에 파라미터로 넘어온 펌웨어를 플래싱
// TODO: 현재 유일한 지원기종인 microbitble에 맞춰져있음, 추후 지원기기가 늘어나면 로직수정 필요
async flashFirmware(firmwareUrl: string, moduleId: string) {
async flashFirmware(firmwareUrl: string, percentCallback: Function) {
try {
if (!this.device) {
throw Error('device undefined');
Expand All @@ -57,14 +57,14 @@ export default class WebUsbFlasher {
// TODO: 퍼센트 로직도 분리
if (sentPages % 128 == 0) {
this.flashingPercent = (offset / data.length) * 100;
console.log(this.flashingPercent);
percentCallback && percentCallback(this.flashingPercent);
}
await this.writeBuffer(cmdData);
sentPages++;
offset = end;
}
this.flashingPercent = (offset / data.length) * 100;
console.log(this.flashingPercent);
percentCallback && percentCallback(this.flashingPercent);
this.flashState = 'end';

// INFO: close
Expand Down
2 changes: 1 addition & 1 deletion src/playground/block_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ function getBlocks() {
},
},
hardware_device_name_title: {
skeleton: 'basic_text',
skeleton: 'basic_text_light',
color: EntryStatic.colorSet.common.TRANSPARENT,
template: '%1',
params: [
Expand Down
Loading

0 comments on commit 64090a2

Please sign in to comment.