Skip to content

Commit

Permalink
Show Loading... when previous calibration exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ysoldak committed Dec 13, 2023
1 parent ea0c26a commit 752778f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ func main() {
o.Reset()

// calibrate gyroscope (until stable)
waitText := "Calibrating"
if !f.IsEmpty() {
waitText = "Loading" // secondary calibration is short, just show "Loading" in that case
}
d.RemoveText(nil)
d.SetTextBlink(d.AddText(1, "Calibrating "), "Calibrating...", true)
d.SetTextBlink(d.AddText(1, waitText+" "), waitText+"...", true)
prev := [3]int32{0, 0, 0}
directions := [3]int32{1, 1, 1}
maxCorrection := int32(2_000_000)
Expand Down

0 comments on commit 752778f

Please sign in to comment.