When issuing subsequent voice commands close together, sometimes the same label will print more than once. This is a race condition where the listener gets a new update before the print handler has had a chance to mark the previous label as printed.
This change caches successfully printed labels for 30 seconds, and skips printing any that are in the cache.
When issuing subsequent voice commands close together, sometimes the same label will print more than once. This is a race condition where the listener gets a new update before the print handler has had a chance to mark the previous label as printed.
This change caches successfully printed labels for 30 seconds, and skips printing any that are in the cache.