Skip to content

Commit

Permalink
переименование
Browse files Browse the repository at this point in the history
  • Loading branch information
Roundabout1 committed Sep 11, 2024
1 parent 5e4b35b commit 13831f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/renderer/src/types/FlasherTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,22 @@ export class FlashResult {
private device: Device | undefined;
/** результат обработки запроса*/
private result: string | undefined;
/** сообщение от avrdude*/
private avrdudeMsg: string | undefined;
/** сообщение от программы для прошивки (например, avrdude)*/
private flashMsg: string | undefined;
constructor(
device: Device | undefined,
result: string | undefined,
avrdudeMsg: string | undefined
flashMsg: string | undefined
) {
this.device = device;
this.result = result;
this.avrdudeMsg = avrdudeMsg;
this.flashMsg = flashMsg;
}
/** получить результат прошивки*/
public report(): string {
const deviceDesc = this.device ? `${this.device.name} (${this.device.portName})` : 'неизвестно';
const serialID = this.device?.serialID ? this.device?.serialID : 'отсутствует';
const avrdudeMsg = this.avrdudeMsg ? this.avrdudeMsg : 'отсутствует сообщение';
const avrdudeMsg = this.flashMsg ? this.flashMsg : 'отсутствует сообщение';
return `
Устройство: ${deviceDesc}
Серийный номер устройства: ${serialID}
Expand Down

0 comments on commit 13831f0

Please sign in to comment.