mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-30 04:19:28 -07:00
This commit also refactors a majority of the device specific frame buffer code into common code into generic_framebuffer.
27 lines
626 B
Rust
27 lines
626 B
Rust
use crate::config;
|
|
use crate::display::DisplayState;
|
|
use crate::display::generic_framebuffer;
|
|
|
|
use tokio::sync::mpsc::Receiver;
|
|
use tokio::sync::oneshot;
|
|
use tokio_util::task::TaskTracker;
|
|
|
|
use super::generic_framebuffer::FramebufferDevice;
|
|
|
|
const FB_PATH: &str = "/dev/fb0";
|
|
|
|
pub fn update_ui(
|
|
task_tracker: &TaskTracker,
|
|
config: &config::Config,
|
|
ui_shutdown_rx: oneshot::Receiver<()>,
|
|
ui_update_rx: Receiver<DisplayState>,
|
|
) {
|
|
generic_framebuffer::update_ui(
|
|
task_tracker,
|
|
config,
|
|
FramebufferDevice::new(FB_PATH, None, None),
|
|
ui_shutdown_rx,
|
|
ui_update_rx,
|
|
)
|
|
}
|