Skip to content

Commit

Permalink
fix: missing cfg gates on cpal/file features
Browse files Browse the repository at this point in the history
  • Loading branch information
alemidev committed Apr 4, 2024
1 parent 103aaba commit b963aba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

use std::{io, ops::Range, time::{Duration, Instant}};
use std::{io, time::{Duration, Instant}};
use ratatui::{
style::Color, widgets::{Table, Row, Cell}, symbols::Marker,
backend::Backend,
Expand All @@ -8,7 +8,7 @@ use ratatui::{
};
use crossterm::event::{self, Event, KeyCode, KeyModifiers};

use crate::{display::{oscilloscope::Oscilloscope, spectroscope::Spectroscope, vectorscope::Vectorscope, Dimension, DisplayMode, GraphConfig}, input::{Matrix, DataSource}};
use crate::{display::{oscilloscope::Oscilloscope, spectroscope::Spectroscope, update_value_f, update_value_i, vectorscope::Vectorscope, Dimension, DisplayMode, GraphConfig}, input::{DataSource, Matrix}};

pub enum CurrentDisplayMode {
Oscilloscope,
Expand Down
2 changes: 2 additions & 0 deletions src/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pub enum ScopeSource {
server_buffer: u32,
},

#[cfg(feature = "file")]
/// use a file from filesystem and read its content
File {
/// path on filesystem of file or pipe
Expand All @@ -72,6 +73,7 @@ pub enum ScopeSource {
limit_rate: bool,
},

#[cfg(feature = "cpal")]
/// use new experimental CPAL backend
Audio {
/// source device to attach to
Expand Down

0 comments on commit b963aba

Please sign in to comment.