mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 01:05:15 +03:00
More coderabbit ...
This commit is contained in:
parent
6a06ca1ed1
commit
b218963680
2 changed files with 4 additions and 4 deletions
|
@ -156,7 +156,7 @@ export class MSPQueueMonitor {
|
|||
* Check for alert conditions
|
||||
*/
|
||||
_checkAlerts() {
|
||||
const queueSize = this.msp.callbacks.length;
|
||||
const queueSize = this.msp.callbacks?.length ?? 0;
|
||||
|
||||
// Queue full alert
|
||||
const wasQueueFull = this.alerts.queueFull;
|
||||
|
@ -607,7 +607,7 @@ export class MSPQueueMonitor {
|
|||
}
|
||||
|
||||
// Clear instrumentation flag
|
||||
delete this.msp._mspQueueMonitorInstrumented;
|
||||
this.msp._mspQueueMonitorInstrumented = undefined;
|
||||
|
||||
this.listeners = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue