Title: 4.6.0 sendRC5ext() to sendRC5() conversion: only works when toggleBit is 1 · Issue #1347 · Arduino-IRremote/Arduino-IRremote · GitHub
Open Graph Title: 4.6.0 sendRC5ext() to sendRC5() conversion: only works when toggleBit is 1 · Issue #1347 · Arduino-IRremote/Arduino-IRremote
X Title: 4.6.0 sendRC5ext() to sendRC5() conversion: only works when toggleBit is 1 · Issue #1347 · Arduino-IRremote/Arduino-IRremote
Description: Please specify "FQBN" (Fully Qualified Board Name). It is the first line in the compiler output in the Arduino IDE 2.x. E.g. "esp32:esp32:featheresp32:FlashFreq=80". The FQBN starts with the core name, which is essential for bugfixing. F...
Open Graph Description: Please specify "FQBN" (Fully Qualified Board Name). It is the first line in the compiler output in the Arduino IDE 2.x. E.g. "esp32:esp32:featheresp32:FlashFreq=80". The FQBN starts with the core n...
X Description: Please specify "FQBN" (Fully Qualified Board Name). It is the first line in the compiler output in the Arduino IDE 2.x. E.g. "esp32:esp32:featheresp32:FlashFreq=80". The FQBN st...
Opengraph URL: https://github.com/Arduino-IRremote/Arduino-IRremote/issues/1347
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"4.6.0 sendRC5ext() to sendRC5() conversion: only works when toggleBit is 1","articleBody":"### Please specify \"FQBN\" (Fully Qualified Board Name). It is the first line in the compiler output in the Arduino IDE 2.x. E.g. \"esp32:esp32:featheresp32:FlashFreq=80\". The FQBN starts with the core name, which is essential for bugfixing. For example, at least two prominent cores are available for the Bluepill board, namely STMicroelectronics and STM32duino. Without the FQBN we are most likely not able to fix the the issue.\n\natmega1284\n\n### The board manager URL used for exotic cores.\n\n_No response_\n\n### What IDE are you using?\n\nOther - please specify below\n\n### What IR protocol are you using?\n\nRC5, RC6\n\n### Pin(s) used for IR-receive, if not default.\n\nArduino pin number: 14\n\n### Example(s) you have checked while hunting the bug.\n\n- [ ] SimpleReceiver\n- [ ] ReceiveDemo\n- [ ] SendRawDemo\n- [ ] ReceiverTimingAnalysis\n- [ ] ReceiveDump\n- [ ] TinyReceiver\n- [ ] TinySender\n- [ ] ReceiveAndSend\n- [ ] SimpleSender\n- [ ] SendDemo\n- [ ] UnitTest\n- [ ] Other - please specify below\n- [x] I checked, whether at least one of the examples was working.\n\n### Example(s) to reproduce the issue.\n\n- [ ] SimpleReceiver\n- [ ] ReceiveDemo\n- [ ] SendRawDemo\n- [ ] ReceiverTimingAnalysis\n- [ ] ReceiveDump\n- [ ] TinyReceiver\n- [ ] TinySender\n- [ ] ReceiveAndSend\n- [ ] SimpleSender\n- [ ] SendDemo\n- [ ] UnitTest\n- [ ] Other - please specify below\n\n### The library version you are working with.\n\n- [x] I use the [latest Arduino library version](../releases) and verified this!\n- [x] I use the latest repo version ([download link](../archive/master.zip)) and verified this!\n\n### What are the steps to reproduce this issue?\n\nI just attempted to upgrade a sketch that works with 4.5.0 to 4.6.0. I saw the new deprecated warning and made this change:\n```\n\u003c IrSender.sendRC5ext(device, obc, false);\n---\n\u003e IrSender.sendRC5(device, obc, NO_REPEATS, false);\n```\n(sendRC5ext() does not appear to repeat commands so NO_REPEATS looked appropriate.)\n\n### What happens?\n\nThe device (a siriusxm onyx plus) no longer obeys any IR commands after building with 4.6.0 and sendRC5().\n\nI have another sketch that decodes IR commands (atmega1284p @ 16 MHz) that still uses 4.5.0. It correctly decodes both versions (sendRC5ext() and sendRC5()).\n\n### The output which indicates the error happened.\n\n```shell\n\n```\n\n### What were you expecting to happen?\n\n_No response_\n\n### Additional context.\n\nI updated the FreeBSD arduino-irremote port from 4.5.0 to 4.6.0 today. I build my sketches with make from the command line (no ide).\n\nI am using arduino 1.8.19 (i.e. the most recent 1.X).\n\nI am using an atmega1284 clocked at 20 MHz.\n\nI have a different sketch (atmega328 @ 16 MHz) that sends commands to the onyx plus and works with 4.6.0.\n\nI found that the atmega1284 will work every other attempt if I enable toggle:\n```\nIrSender.sendRC5(device, obc, NO_REPEATS, true);\n```\nLooking at the code in sendRC5ext(), I see toggleBit defaults to \"1\" when toggle is false. I thought this might explain why using toggle=1 with sendRC5() works every other time.\n\nI verified (on the atmega1284 @ 20 MHz) that delay(1) takes ~1010 us and delayMicroseconds(1) takes 3-6 us (pretty much the same with/without a delay).\n\nI wonder if the non-default F_CPU factors into this issue?\n\n### Final checklist for the bug report.\n\n- [x] I have **read** the README.md file thoroughly\n- [x] I have browsed the examples for one that matches my use case.\n- [x] The title of the issue is helpful and relevant.","author":{"url":"https://github.com/leres","@type":"Person","name":"leres"},"datePublished":"2026-02-27T04:59:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1347/Arduino-IRremote/issues/1347"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d55da6ee-3b16-abf1-27ad-02eae64af3b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9564:2B16CF:1EC3393:2951A04:6A6525BD |
| html-safe-nonce | c1a51ab27a57b1c05039f1ee38f0e3e8823925b43242e079cca121c38a6c7cfc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTY0OjJCMTZDRjoxRUMzMzkzOjI5NTFBMDQ6NkE2NTI1QkQiLCJ2aXNpdG9yX2lkIjoiMTEzMTA0NjQ5OTIxODk1Nzc1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 99777989bf3e838b6aaea9a51bba98b929211bada6e92108c3e2a90cada6f70a |
| hovercard-subject-tag | issue:3999099664 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Arduino-IRremote/Arduino-IRremote/1347/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7408c12fe6d52f5b6c4579f30678fe88b36b0791d5146166de09fb44eb7e250a/Arduino-IRremote/Arduino-IRremote/issues/1347 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7408c12fe6d52f5b6c4579f30678fe88b36b0791d5146166de09fb44eb7e250a/Arduino-IRremote/Arduino-IRremote/issues/1347 |
| og:image:alt | Please specify "FQBN" (Fully Qualified Board Name). It is the first line in the compiler output in the Arduino IDE 2.x. E.g. "esp32:esp32:featheresp32:FlashFreq=80". The FQBN starts with the core n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | leres |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| go-import | github.com/Arduino-IRremote/Arduino-IRremote git https://github.com/Arduino-IRremote/Arduino-IRremote.git |
| octolytics-dimension-user_id | 75913823 |
| octolytics-dimension-user_login | Arduino-IRremote |
| octolytics-dimension-repository_id | 484788 |
| octolytics-dimension-repository_nwo | Arduino-IRremote/Arduino-IRremote |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 484788 |
| octolytics-dimension-repository_network_root_nwo | Arduino-IRremote/Arduino-IRremote |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width