File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -88,21 +88,21 @@ void MT6835::setBandwidth(uint8_t bw){
8888};
8989
9090uint8_t MT6835::getHysteresis (){
91- MT6835Options3 opts = { .reg = getOptions3 () };
91+ MT6835Options3 opts = { .reg = getOptions3 (). reg };
9292 return opts.hyst ;
9393};
9494void MT6835::setHysteresis (uint8_t hyst){
95- MT6835Options3 opts = { .reg = getOptions3 () };
95+ MT6835Options3 opts = { .reg = getOptions3 (). reg };
9696 opts.hyst = hyst;
9797 setOptions3 (opts);
9898};
9999
100100uint8_t MT6835::getRotationDirection (){
101- MT6835Options3 opts = { .reg = getOptions3 () };
101+ MT6835Options3 opts = { .reg = getOptions3 (). reg };
102102 return opts.rot_dir ;
103103};
104104void MT6835::setRotationDirection (uint8_t dir){
105- MT6835Options3 opts = { .reg = getOptions3 () };
105+ MT6835Options3 opts = { .reg = getOptions3 (). reg };
106106 opts.rot_dir = dir;
107107 setOptions3 (opts);
108108};
You can’t perform that action at this time.
0 commit comments