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

#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(ru) error #1832

Closed
lcfm1 opened this issue Apr 6, 2015 · 6 comments
Closed

#define LANGUAGE_INCLUDE GENERATE_LANGUAGE_INCLUDE(ru) error #1832

lcfm1 opened this issue Apr 6, 2015 · 6 comments

Comments

@lcfm1
Copy link
Contributor

lcfm1 commented Apr 6, 2015

got error:

Marlin_main.cpp: In function 'float probe_pt(float, float, float, ProbeAction, int)':
language_ru.h:50:45: error: 'LCD_STR_THERMOMETER' was not declared in this scope

@AnHardt
Copy link
Member

AnHardt commented Apr 6, 2015

@lcfm1
Is this still a problem?

@lcfm1
Copy link
Contributor Author

lcfm1 commented Apr 6, 2015

In file included from language.h:235:0,
                 from ultralcd.cpp:4:
language_ru.h:16:58: error: initializer-string for array of chars is too long [-fpermissive]
 #define WELCOME_MSG                         MACHINE_NAME " Готов."
                                                          ^
ultralcd.cpp:34:40: note: in expansion of macro 'WELCOME_MSG'
 char lcd_status_message[LCD_WIDTH+1] = WELCOME_MSG;

@lcfm1
Copy link
Contributor Author

lcfm1 commented Apr 6, 2015

i found problem. in line #define WELCOME_MSG MACHINE_NAME " Готов."

not enough LCD_WIDTH for WELCOME_MSG

MACHINE_NAME="Mini Kossel"
welcome_msg = "Mini Kossel Готов." = 18 symbols.

replace with #define WELCOME_MSG MACHINE_NAME " Готов" in line 16

it was a new error )

@KiteLab
Copy link
Contributor

KiteLab commented Apr 6, 2015

@lcfm1
Thank you for this tip.
Indeed char lcd_status_message[LCD_WIDTH+1] is a bit short since we can use UTF, what needs 2 places for one symbol.

@SkyFlyer2
Copy link

Странно, я только вот на днях проверял, все там ок было.
Надо только не забыть кодировку русскую добавить, такой дефайн есть в обновленном configuration.h.

Речь идет о последней dev-версии, в ней все ок. Но в версии 1.0.2 будут ошибки!

@AnHardt
I've already checked a few days ago, Russian characters were all compiled and no errors seen.
I mean the latest dev-version.
But vesion 1.0.2 contain bugs, of course.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants