fix crash
This commit is contained in:
parent
c7b7a99cf9
commit
a81d082e16
1 changed files with 3 additions and 2 deletions
|
@ -506,8 +506,9 @@ struct Lfsr {
|
||||||
|
|
||||||
impl Lfsr {
|
impl Lfsr {
|
||||||
fn update(&mut self) {
|
fn update(&mut self) {
|
||||||
self.interval =
|
self.interval = (1_u16 << (self.clock_shift as u16))
|
||||||
(1 << (self.clock_shift as u16)) * (1 + (2 * self.clock_divider as u16)) * 8;
|
.wrapping_mul(1 + (2 * self.clock_divider as u16))
|
||||||
|
.wrapping_mul(8);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn tick(&mut self) {
|
fn tick(&mut self) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue