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

a small addition and a fix for the Acurite 5n1 plugin #1

Open
wants to merge 2 commits into
base: plugins
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plugin/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ VISIBLE plugin_array *pm_discover_plugins( const char* dirname, plugin_array *pl
{
char *name = direntry->d_name;
// TODO: have a look at expected extensions for other platforms
if (!name || ( direntry->d_type != DT_REG && direntry->d_type != DT_LNK ) || ! strstr( name, ".so" ) )
if (!name || ( direntry->d_type != DT_REG && direntry->d_type != DT_LNK ) || (! strstr( name, ".so" ) && ! strstr( name, ".dylib" )) )
{
/* direntry has no name or is not a regular file */
continue;
Expand Down
6 changes: 3 additions & 3 deletions src/plugin/plugin_acurite.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ r_device acurite5n1 = {
/* .id = */ 10,
/* .name = */ "Acurite 5n1 Weather Station",
/* .modulation = */ OOK_PWM_P,
/* .short_limit = */ 235,
/* .long_limit = */ 500,
/* .reset_limit = */ 2000,
/* .short_limit = */ 70,
/* .long_limit = */ 240,
/* .reset_limit = */ 21000,
/* .json_callback = */ &acurite5n1_callback,
};

Expand Down