Skip to content

Commit

Permalink
start driver by setting enable parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak authored and github-actions committed Aug 26, 2024
1 parent 91bb496 commit c811cc9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ROMFS/px4fmu_common/init.d/rc.sensors
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ then
pcf8583 start -X -a 0x51
fi

# S35770 counter (RPM sensor)
if param compare -S SENS_EN_S35770 1
then
s35770 start -X
fi

# probe for optional external I2C devices
if param compare SENS_EXT_I2C_PRB 1
then
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/rpm/s35770/parameters.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/****************************************************************************
*
* Copyright (c) 2020 PX4 Development Team. All rights reserved.
* Copyright (c) 2024 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down

0 comments on commit c811cc9

Please sign in to comment.