)]}'
{
  "commit": "211c6ec6011f554a5a9aeacdf0d2c410b343bb2a",
  "tree": "98aa11ff12be1c2dc721115c06584ea11c5ddee9",
  "parents": [
    "383b7fe197a781792d4eb42abe1e84551c2b5d0b"
  ],
  "author": {
    "name": "Nico Huber",
    "email": "nico.h@gmx.de",
    "time": "Sun Feb 12 01:05:47 2023 +0100"
  },
  "committer": {
    "name": "Nico Huber",
    "email": "nico.h@gmx.de",
    "time": "Sat Mar 09 10:50:41 2024 +0000"
  },
  "message": "serprog: Refine flushing before synchronization\n\nWe used to wait for 1s before flushing buffers of the tty layer.\nHowever, if the programmer had more data to send than would fit\ninto these buffers, it would continue to send after flushing the\nlatter. So we try to read all the data instead. The added loop\nreads up to 512KiB and stops when no data is received for 10ms.\nOverall, it should time out after at most 10s.\n\nTests show that an stm32-vserprog can be re-synchronized after\ninterrupted reads, where the old implementation failed. In case\nsynchronization is necessary, it also succeeds without notice-\nable delay.\n\nChange-Id: Iaa5dfceac0629381ca0924bb59b988525bacba3f\nSigned-off-by: Nico Huber \u003cnico.h@gmx.de\u003e\nReviewed-on: https://review.sourcearcade.org/c/flashprog/+/72996\nReviewed-by: Riku Viitanen \u003criku.viitanen@protonmail.com\u003e\nReviewed-by: Arthur Heymans \u003carthur@aheymans.xyz\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "60e87a42f4ddb8b529e88da8d53399bd9224345d",
      "old_mode": 33188,
      "old_path": "serprog.c",
      "new_id": "6cf87f00bd082569ed960c3099682cc431401ef7",
      "new_mode": 33188,
      "new_path": "serprog.c"
    }
  ]
}
