dmrlawson / raspberrypi-dshot

Very basic python module for controlling DSHOT ESCs over Raspberry Pi's GPIO pins.
25 stars 9 forks source link

Raspberry Pi 4 error #4

Open xignoe opened 2 years ago

xignoe commented 2 years ago

Tried running on Raspberry Pi 4 and also Mac OS X 11.0.1 does not work. I received these errors:

dshotmodule.c:114:5: error: implicit declaration of function 'send_throttle' is invalid in C99 [-Werror,-Wimplicit-function-declaration] send_throttle(pin, value, 0); ^ dshotmodule.c:170:13: error: conflicting types for 'send_throttle' inline void send_throttle(int pin, int throttle, int telem) { ^ dshotmodule.c:114:5: note: previous implicit declaration is here send_throttle(pin, value, 0); ^ 2 errors generated.

Thanks so much for your time!

dmrlawson commented 2 years ago

Hi,

I've not tried compiling this for a long time.

Are you trying to compile on 64-bit OSs by any chance? If so, could you try on 32bit Raspberry Pi OS?