Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #9

Open
zab-ig opened this issue Jan 19, 2024 · 1 comment
Open

Compilation error #9

zab-ig opened this issue Jan 19, 2024 · 1 comment

Comments

@zab-ig
Copy link

zab-ig commented Jan 19, 2024

Hello. If you activate the display, an error occurs during compilation:

Arduino: 1.8.19 (Windows 10), Плата:"Teensy 4.1, Serial, 600 MHz, Faster, US English"
D:\Arduino\libraries\grblHAL_Teensy4\src\keypad\display\i2c_interface.c: In function 'send_status_info':
D:\Arduino\libraries\grblHAL_Teensy4\src\keypad\display\i2c_interface.c:124:17: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
((overrides_t *)status_packet.msg)->spindle_rpm = spindle->param->override_pct;
^
D:\Arduino\libraries\grblHAL_Teensy4\src\keypad\display\i2c_interface.c: In function 'set_state':
D:\Arduino\libraries\grblHAL_Teensy4\src\keypad\display\i2c_interface.c:142:38: warning: implicit declaration of function 'state_get_substate' [-Wimplicit-function-declaration]
status_packet.machine_substate = state_get_substate();
^
D:\Arduino\libraries\grblHAL_Teensy4\src\keypad\display\i2c_interface.c: In function 'add_reports':
D:\Arduino\libraries\grblHAL_Teensy4\src\keypad\display\i2c_interface.c:359:39: error: too few arguments to function 'spindle->get_state'
status_packet.spindle_state = spindle->get_state();
^
exit status 1

This error has never occurred before.

terjeio added a commit that referenced this issue Jan 19, 2024
@terjeio
Copy link
Contributor

terjeio commented Jan 19, 2024

Fix commited, thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants