reminder to myself - dynamic frame delay needs work

This commit is contained in:
Maff 2019-10-08 16:11:49 +01:00
parent c324cabd88
commit fe4f65f9cc
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ namespace libpaperang.Main {
NoOp();
}
public async Task PollAsync() => await Task.Run(() => Poll());
//Improvement note - feed delay should scale up dependent on how dark the image is! dark parts take longer to print than light parts. maybe add 1ms of delay for every 50-100 dark pixels??
public void PrintBytes(byte[] data, bool autofeed = true) {
logger?.Trace($"PrintBytes() invoked with data length of {data.Length}");
List<byte[]> segments = data