mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
add i2c error counter in status bar
This commit is contained in:
parent
22cc8f0b96
commit
f70b6f64ff
4 changed files with 9 additions and 2 deletions
|
@ -173,6 +173,7 @@ MSP.process_data = function(code, message_buffer, message_length) {
|
|||
CONFIG.profile = data.getUint8(10);
|
||||
|
||||
sensor_status(CONFIG.activeSensors);
|
||||
$('span.i2c-error').text(CONFIG.i2cError);
|
||||
$('span.cycle-time').text(CONFIG.cycleTime);
|
||||
break;
|
||||
case MSP_codes.MSP_RAW_IMU:
|
||||
|
|
|
@ -32,8 +32,8 @@ $(document).ready(function() {
|
|||
GUI.connected_to = false;
|
||||
|
||||
// Reset various UI elements
|
||||
$('.software-version').html('0.0');
|
||||
$('span.cycle-time').html('0');
|
||||
$('span.i2c-error').text(0);
|
||||
$('span.cycle-time').text(0);
|
||||
|
||||
MSP.disconnect_cleanup();
|
||||
PortUsage.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue