{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":246224243,"defaultBranch":"main","name":"python3-gpiod","ownerLogin":"hhk7734","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2020-03-10T06:25:28.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/21096989?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1682245100.0","currentOid":""},"activityList":{"items":[{"before":"c1e2366e261faaafc31e4e7080e19585c72b59f6","after":"9fc8fee03b70b9984e53261c4f3a7cef26f8be77","ref":"refs/heads/main","pushedAt":"2024-05-20T00:34:12.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"deprecated","shortMessageHtmlLink":"deprecated"}},{"before":"12f3a2a58d7e1cb1442a4bfe793e7e5e72037adb","after":"c1e2366e261faaafc31e4e7080e19585c72b59f6","ref":"refs/heads/main","pushedAt":"2024-05-20T00:31:40.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"deprecated","shortMessageHtmlLink":"deprecated"}},{"before":"dbf932e680fb213fcfcd612dadf9544de7f51212","after":"12f3a2a58d7e1cb1442a4bfe793e7e5e72037adb","ref":"refs/heads/main","pushedAt":"2023-08-23T16:26:02.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"libgpiod: fix error when opening symlinks to gpiochips (#37)\n\nFunction _is_gpiochip_cdev assumes the path provides is the actual\r\ncharacter device file but it might be a symlink to one and still be\r\nvalid.\r\n\r\nMake sure to follow the links before performing the checks\r\n\r\nSigned-off-by: Jerome Brunet ","shortMessageHtmlLink":"libgpiod: fix error when opening symlinks to gpiochips (#37)"}},{"before":"9a38a62d356a88fe70b92552c719518653de6655","after":"dbf932e680fb213fcfcd612dadf9544de7f51212","ref":"refs/heads/main","pushedAt":"2023-04-23T10:18:00.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"python3-gpiod v1.5.4","shortMessageHtmlLink":"python3-gpiod v1.5.4"}},{"before":"ce8bbfec99eec9805fa7b6f184aec8a2dd14955e","after":null,"ref":"refs/tags/v1.5.4","pushedAt":"2023-04-23T10:16:43.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"}},{"before":"e61f05d508c7b54509bacd5ea8314fda1b1db990","after":null,"ref":"refs/tags/v1.5.4","pushedAt":"2023-04-23T10:16:18.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"}},{"before":"a5e5325b519399401161a51e36aa7840b9447f43","after":"9a38a62d356a88fe70b92552c719518653de6655","ref":"refs/heads/main","pushedAt":"2023-04-23T10:11:07.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"Also build a py3-none-any wheel (#33)","shortMessageHtmlLink":"Also build a py3-none-any wheel (#33)"}},{"before":"82963ca7e968f482210ed1051e4bc54f4b20abcf","after":"a5e5325b519399401161a51e36aa7840b9447f43","ref":"refs/heads/main","pushedAt":"2023-04-23T09:51:34.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"Fixed issue when gpio chip has no label (#35)\n\nWhen a GPIO chip has no label, `gpiod.chip_iter()` leads to a\r\n`IndexError` because the ioctl call leaves the label field empty, not\r\n\"\\0\":\r\n\r\n![image](https://user-images.githubusercontent.com/57112334/232837059-231b9300-2dc4-4820-bac5-7c356570c306.png)\r\n\r\nYou can run the following python script when a GPIO chip has no label\r\n```\r\nimport gpiod\r\n\r\nchips_dict = {chip.name for chip in gpiod.chip_iter()}\r\nprint(chips_dict)\r\n```\r\nand it will result in:\r\n```\r\nTraceback (most recent call last):\r\n File \"/home/pi/workspace/test.py\", line 3, in \r\n chips_dict = {chip.name for chip in gpiod.chip_iter()}\r\n File \"/home/pi/.local/lib/python3.9/site-packages/gpiod/libgpiodcxx/__init__.py\", line 1285, in __iter__\r\n self._iter = libgpiod.gpiod_chip_iter().__iter__()\r\n File \"/home/pi/.local/lib/python3.9/site-packages/gpiod/libgpiod/__init__.py\", line 1195, in __iter__\r\n chip = gpiod_chip_open(it)\r\n File \"/home/pi/.local/lib/python3.9/site-packages/gpiod/libgpiod/__init__.py\", line 127, in gpiod_chip_open\r\n if info.label[0] == \"\\0\":\r\nIndexError: index out of range\r\n```\r\n\r\nWhereas the gpiod cli handles the lable correctly:\r\n```\r\n$ gpiodetect\r\ngpiochip0 [pinctrl-bcm2711] (58 lines)\r\ngpiochip1 [raspberrypi-exp-gpio] (8 lines)\r\ngpiochip2 [unknown] (2 lines)\r\n```\r\n\r\nCo-authored-by: Yacin Belmihoub-Martel ","shortMessageHtmlLink":"Fixed issue when gpio chip has no label (#35)"}},{"before":"c2fea1516ce95e3fb6ee02fde3b593efce235cc6","after":null,"ref":"refs/heads/format","pushedAt":"2023-04-23T09:50:12.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"}},{"before":"673cf69cf7e6189a1ad096fb11bf4964e4a37e04","after":"82963ca7e968f482210ed1051e4bc54f4b20abcf","ref":"refs/heads/main","pushedAt":"2023-04-23T09:50:11.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"chore: change max-line-length and run black and isort (#36)","shortMessageHtmlLink":"chore: change max-line-length and run black and isort (#36)"}},{"before":"5cc8e34dc31812c2c90e2b71fa9e44bae341135f","after":"c2fea1516ce95e3fb6ee02fde3b593efce235cc6","ref":"refs/heads/format","pushedAt":"2023-04-23T09:43:45.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"refactor: fix lint error","shortMessageHtmlLink":"refactor: fix lint error"}},{"before":"e292a99d52871d704443f7866419ae77dad66973","after":"5cc8e34dc31812c2c90e2b71fa9e44bae341135f","ref":"refs/heads/format","pushedAt":"2023-04-23T09:37:33.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"refactor: fix lint error","shortMessageHtmlLink":"refactor: fix lint error"}},{"before":"e95979cf68f7be1a337e793c5ce30201364ef22c","after":"e292a99d52871d704443f7866419ae77dad66973","ref":"refs/heads/format","pushedAt":"2023-04-23T09:33:59.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"refactor: fix lint error","shortMessageHtmlLink":"refactor: fix lint error"}},{"before":"f70b0cf4af72a95901acc31834e64d00f09618d0","after":"e95979cf68f7be1a337e793c5ce30201364ef22c","ref":"refs/heads/format","pushedAt":"2023-04-23T09:18:33.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"chore: run black and isort","shortMessageHtmlLink":"chore: run black and isort"}},{"before":null,"after":"f70b0cf4af72a95901acc31834e64d00f09618d0","ref":"refs/heads/format","pushedAt":"2023-04-23T09:15:05.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"hhk7734","name":"Hyeonki Hong","path":"/hhk7734","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/21096989?s=80&v=4"},"commit":{"message":"chore: run black and isort","shortMessageHtmlLink":"chore: run black and isort"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAETk_R9QA","startCursor":null,"endCursor":null}},"title":"Activity ยท hhk7734/python3-gpiod"}