gavination / Tremor-Trainer

2 stars 0 forks source link

Accelerometer ViewModel needs to rely on state transitions #61

Closed gavination closed 2 years ago

gavination commented 2 years ago

Currently, moving from idle to sampling to session running is done with a series of confusing if/else statements. Refactor this to make use of enums and switches for readability and maintain-ability's sake.