Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sensor_rpmsg.c: Fix that "stub" will be created when local core only …
…has subscribers. After the ap core subscribes to the 25hz batch 120ms data of the sensor core, it switches to the cp core and subscribes to the 50hz batch 120ms sensor core data. At this time, the data subscribed by the AP will be abnormally lost (12.5hz). Mainly because ap subscribes to sensor core data earlier than cp. The subscription of cp will be broadcast to the ap core at the same time, and the corresponding "path" already exists under "/dev/uorb" of ap. Thus the ap will create a "stub". There are some restrictions on the creation of "stub" to avoid this situation. Signed-off-by: likun17 <likun17@xiaomi.com>
- Loading branch information