Skip to content

Commit b815790

Browse files
authored
Fix the camera number sometimes not getting updated
1 parent f0bc305 commit b815790

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: listener_clients/M5AtomMatrix-listener/tallyarbiter-m5atom/tallyarbiter-m5atom.ino

+6
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,12 @@ void loop(){
959959
delay(100); // Introduce a short delay before closing
960960
preferences.end(); // Close the Preferences after saving
961961
}
962+
963+
float accX, accY, accZ;
964+
965+
M5.IMU.getAccelData(&accX, &accY, &accZ);
966+
967+
updateDisplayBasedOnOrientation(accX, accY, accZ);
962968
drawNumber(rotatedNumber, offcolor);
963969

964970
// Lets get some info sent out the serial connection for debugging

0 commit comments

Comments
 (0)