1
0
mirror of https://github.com/4yn/slidershim.git synced 2024-11-13 17:31:00 +01:00

rename flat to to_flat

This commit is contained in:
4yn 2022-02-13 15:27:32 +08:00
parent 0772285761
commit 2a0d466cf3
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ impl AsyncJob for LedJob {
match self.mode { match self.mode {
LedMode::Reactive { sensitivity, .. } => { LedMode::Reactive { sensitivity, .. } => {
let controller_state_handle = self.state.controller_state.lock(); let controller_state_handle = self.state.controller_state.lock();
flat_controller_state = Some(controller_state_handle.flat(&sensitivity)); flat_controller_state = Some(controller_state_handle.to_flat(&sensitivity));
} }
LedMode::Serial { .. } => { LedMode::Serial { .. } => {
if let Some(serial_port) = self.serial_port.as_mut() { if let Some(serial_port) = self.serial_port.as_mut() {

View File

@ -80,7 +80,7 @@ impl AsyncJob for OutputJob {
let flat_controller_state: Vec<bool>; let flat_controller_state: Vec<bool>;
{ {
let controller_state_handle = self.state.controller_state.lock(); let controller_state_handle = self.state.controller_state.lock();
flat_controller_state = controller_state_handle.flat(&self.sensitivity); flat_controller_state = controller_state_handle.to_flat(&self.sensitivity);
} }
if let Some(handler) = self.handler.as_mut() { if let Some(handler) = self.handler.as_mut() {