refactor-ota-dialog (#768)

Co-authored-by: philon- <philon-@users.noreply.github.com>
This commit is contained in:
Jeremy Gallant
2025-08-10 07:49:42 -04:00
committed by GitHub
co-authored by philon-
parent 27ed4e58bd
commit 1dbf0b07b6
11 changed files with 202 additions and 190 deletions
+2 -2
View File
@@ -626,7 +626,7 @@ export class MeshDevice {
public async reboot(time: number): Promise<number> {
this.log.debug(
Emitter[Emitter.Reboot],
`🔌 Rebooting node ${time > 0 ? "now" : `in ${time} seconds`}`,
`🔌 Rebooting node ${time === 0 ? "now" : `in ${time} seconds`}`,
);
const reboot = create(Protobuf.Admin.AdminMessageSchema, {
@@ -649,7 +649,7 @@ export class MeshDevice {
public async rebootOta(time: number): Promise<number> {
this.log.debug(
Emitter[Emitter.RebootOta],
`🔌 Rebooting into OTA mode ${time > 0 ? "now" : `in ${time} seconds`}`,
`🔌 Rebooting into OTA mode ${time === 0 ? "now" : `in ${time} seconds`}`,
);
const rebootOta = create(Protobuf.Admin.AdminMessageSchema, {