File tree Expand file tree Collapse file tree 6 files changed +6
-14
lines changed
Expand file tree Collapse file tree 6 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 2929 fn new ( config : DeviceSetupConfig < I2C , DELAY > ) -> Self {
3030 AIP31068 {
3131 buffer : [ 0 ; MAX_BUFFER_SIZE ] ,
32- config : config ,
32+ config,
3333 }
3434 }
3535
Original file line number Diff line number Diff line change 4343 fn new ( config : DeviceSetupConfig < I2C , DELAY > ) -> Self {
4444 Self {
4545 bits : AdafruitLCDBackpackBitField ( 0 ) ,
46- config : config ,
46+ config,
4747 _marker : PhantomData ,
4848 }
4949 }
Original file line number Diff line number Diff line change 4646 fn new ( config : DeviceSetupConfig < I2C , DELAY > ) -> Self {
4747 Self {
4848 bits : DualHD44780_PCF8574TBitField ( 0 ) ,
49- config : config ,
49+ config,
5050 _marker : PhantomData ,
5151 }
5252 }
Original file line number Diff line number Diff line change 4646 fn new ( config : DeviceSetupConfig < I2C , DELAY > ) -> Self {
4747 Self {
4848 bits : GenericPCF8574TBitField ( 0 ) ,
49- config : config ,
49+ config,
5050 _marker : PhantomData ,
5151 }
5252 }
Original file line number Diff line number Diff line change 4141 fn new ( config : DeviceSetupConfig < I2C , DELAY > ) -> Self {
4242 ST7032i {
4343 buffer : [ 0 ; MAX_BUFFER_SIZE ] ,
44- config : config ,
44+ config,
4545 }
4646 }
4747
Original file line number Diff line number Diff line change @@ -45,21 +45,13 @@ pub const LCD_FLAG_5x8_DOTS: u8 = 0x00; // 8 pixel high font mode
4545/// `StandardActionsHandler`` is a struct that implements the `DisplayActionsTrait` trait. Most of the
4646/// character displays use a standard set of commands to control the display. This struct implements
4747/// for those standard commands.
48+ #[ derive( Default ) ]
4849pub struct StandardCharacterDisplayHandler {
4950 display_function : u8 ,
5051 display_control : u8 ,
5152 display_mode : u8 ,
5253}
5354
54- impl Default for StandardCharacterDisplayHandler {
55- fn default ( ) -> Self {
56- StandardCharacterDisplayHandler {
57- display_function : 0 ,
58- display_control : 0 ,
59- display_mode : 0 ,
60- }
61- }
62- }
6355
6456impl StandardCharacterDisplayHandler {
6557 pub fn get_display_function ( & self ) -> u8 {
You can’t perform that action at this time.
0 commit comments