anshchawla521 / DIY_FC

GNU General Public License v3.0
0 stars 1 forks source link

Code crashes when both SD card and Barometer are running #17

Open anshchawla521 opened 1 year ago

anshchawla521 commented 1 year ago

when you enable both barometer and sdcard the code crashes and even sometimes runs are a frequency of 20 hz

anshchawla521 commented 1 year ago

This has suddenly stopped happening and i have no clue as to how .But even after that taking one reading from barometer was taking 3000us and that was solved by calling Wire.setClock(1000000); after Wire.begin(); to increase the speed of i2c bus from 100khz to 1Mhz .

Still it takes 300 us to read data so will have to look into solving that