refactor-ota-dialog (#768)
Co-authored-by: philon- <philon-@users.noreply.github.com>
This commit is contained in:
co-authored by
philon-
parent
27ed4e58bd
commit
1dbf0b07b6
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user