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

Moved the definitions of the LCD_STR_* to Conditionals.h #1868

Merged
merged 3 commits into from
Apr 9, 2015
Merged

Moved the definitions of the LCD_STR_* to Conditionals.h #1868

merged 3 commits into from
Apr 9, 2015

Conversation

AnHardt
Copy link
Member

@AnHardt AnHardt commented Apr 8, 2015

to avoid errors in Marlin_main.cpp. #1860

In the include tree of Marlin_main.cpp the decision between the display types is not made.
To include the right LCD_STR_* ether 'dogm_lcd_implementation.h' or 'ultralcd_implementation_hitachi_HD44780.h' with all their code must be loaded..
A 'dogm_lcd_implementation.h.h' would be a curiosity.
So i moved both of the definition blocks to conditionals.h

On the long term it could make sense to use the same numbering for the u8glib and the hitachi symbols.

to avoid errors in Marlin_main.cpp. #1860

In the include tree of Marlin_main.cpp the decision between the display types is not made.
To include the right LCD_STR_* ether 'dogm_lcd_implementation.h' or 'ultralcd_implementation_hitachi_HD44780.h' with all their code.
A 'dogm_lcd_implementation.h.h' would be a curiosity.
So i moved both of the definition blocks to conditionals.h

On the long term it could make sense to use the same numbering for the u8glib and the hitachi symbols.
@AnHardt
Copy link
Member Author

AnHardt commented Apr 8, 2015

Failure will only show with ru, pt-br, pt - where MSG_BED = LCD_STR_THERMOMETER " somthing"

Resolved some warnings in Marlin_main.cpp regarding compares of signed and unsigned integers by replacing 'int' or 'uint16_t' with 'uint8_t'.
thinkyhead added a commit that referenced this pull request Apr 9, 2015
Moved the definitions of the LCD_STR_* to Conditionals.h
@thinkyhead thinkyhead merged commit a00ebf0 into MarlinFirmware:Development Apr 9, 2015
@AnHardt AnHardt deleted the LCD_STR branch April 9, 2015 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants