mirror of
https://github.com/4yn/slidershim.git
synced 2024-11-12 00:40:49 +01:00
rename flat to to_flat
This commit is contained in:
parent
0772285761
commit
2a0d466cf3
@ -190,7 +190,7 @@ impl AsyncJob for LedJob {
|
||||
match self.mode {
|
||||
LedMode::Reactive { sensitivity, .. } => {
|
||||
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 { .. } => {
|
||||
if let Some(serial_port) = self.serial_port.as_mut() {
|
||||
|
@ -80,7 +80,7 @@ impl AsyncJob for OutputJob {
|
||||
let flat_controller_state: Vec<bool>;
|
||||
{
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user