Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winrt cpp Iot-Gpio Scenario2_Listen.cpp line 55 missing valueChangedEventToken = listenPin.ValueChanged(.....); #1294

Closed
Hoenscher opened this issue May 16, 2021 · 2 comments
Labels

Comments

@Hoenscher
Copy link

Hoenscher commented May 16, 2021

Which sample are you reporting a bug in?

IoT-GPIO

Describe the bug
At line 55 of Scenario2_Listen.cpp, the ValueChanged event token is not saved, even though it is used later to unregister. Should be assigned to valueChangedEventToken.

Configuration

  • C++/WinRT all configurations
@Hoenscher Hoenscher added the bug label May 16, 2021
@Hoenscher Hoenscher changed the title Iot-Gpio winrt cpp Iot-Gpio Scenario2_Listen.cpp line 55 missing valueChangedEventToken = listenPin.ValueChanged(.....); May 16, 2021
@oldnewthing
Copy link
Member

Will be in the next refresh.

oldnewthing added a commit that referenced this issue Mar 10, 2022
* IoT-GPIO: Remember event token so we can unsubscribe later #1247
* SimpleCommunication: Fix typo in parameter ordering (code worked, but names were backward) #1294
* WiFiDirect: Fix build #1319
* Delete obsolete samples templates
@oldnewthing
Copy link
Member

Fixed in v10.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants