You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library supports 4 pin numbering modes: BOARD, BCM, CVM and TEGRA_SOC.
CVM and TEGRA_SOC use strings instead of numbers which correspond to signal names on the CVM/CVB connector and the Tegra SoC respectively.
So the channel is NOT always convertible to type int.
But the event module is probably implemented with assumption that the channel is always convertible to int.
For example, in wait_for_edge, add_event_detect function, std::atoi is used to convert the channel to int .
If the user is using CVM or TEGRA_SOC, these functions will throw an exception.
And callback objects use the channel argument as int type. This should be fixed too.
The text was updated successfully, but these errors were encountered:
- CVM and TEGRA_SOC use strings instead of numbers.
So the channel is NOT always convertible to int.
- in wait_for_edge, add_event_detect function,
std::atoi is used to convert the channel to int .
If the user is using CVM orTEGRA_SOC,
these functions will throw an exception.
- see #39
- fix for the following issue(issue #39):
The library supports 4 pin numbering modes:
BOARD, BCM, CVM and TEGRA_SOC.
The CVM and TEGRA_SOC mode use strings instead of numbers for the channels.
So the channel is NOT ALWAYS convertible to int.
If the user is using CVM or TEGRA_SOC mode,
the wait_for_edge and add_event_detect function
will throw an exception.
- by this fix, some part of the public API changed:
1. the return type of wait_for_edge function changed
2. the signature of the callback object changed
The library supports 4 pin numbering modes: BOARD, BCM, CVM and TEGRA_SOC.
CVM and TEGRA_SOC use strings instead of numbers which correspond to signal names on the CVM/CVB connector and the Tegra SoC respectively.
So the channel is NOT always convertible to type
int
.But the event module is probably implemented with assumption that the channel is always convertible to
int
.For example, in
wait_for_edge
,add_event_detect
function,std::atoi
is used to convert the channel toint
.If the user is using CVM or TEGRA_SOC, these functions will throw an exception.
And callback objects use the channel argument as
int
type. This should be fixed too.The text was updated successfully, but these errors were encountered: