gsshelton

Klipper Compiling Error

Dec 28th, 2021
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. pi@octopi:~/klipper $ make
  2. Compiling out/src/i2ccmds.o
  3. src/i2ccmds.c:14:23: error: field ‘i2c_config’ has incomplete type
  4. struct i2c_config i2c_config;
  5. ^
  6. src/i2ccmds.c: In function ‘command_config_i2c’:
  7. src/i2ccmds.c:23:23: warning: implicit declaration of function ‘i2c_setup’ [-Wimplicit-function-declaration]
  8. i2c->i2c_config = i2c_setup(args[1], args[2], addr);
  9. ^
  10. src/i2ccmds.c: In function ‘command_i2c_write’:
  11. src/i2ccmds.c:35:5: warning: implicit declaration of function ‘i2c_write’ [-Wimplicit-function-declaration]
  12. i2c_write(i2c->i2c_config, data_len, data);
  13. ^
  14. src/i2ccmds.c: In function ‘command_i2c_read’:
  15. src/i2ccmds.c:48:5: warning: implicit declaration of function ‘i2c_read’ [-Wimplicit-function-declaration]
  16. i2c_read(i2c->i2c_config, reg_len, reg, data_len, data);
  17. ^
  18. make: *** [Makefile:64: out/src/i2ccmds.o] Error 1
  19. pi@octopi:~/klipper $
Advertisement
Add Comment
Please, Sign In to add comment