File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -108,17 +108,17 @@ static int loader(const struct shell *sh)
108
108
void matrixGrayscaleWrite (uint8_t * buf );
109
109
#include "bootanimation.h"
110
110
111
- uint8_t * _bootanimation = bootanimation ;
111
+ uint8_t * _bootanimation = ( uint8_t * ) bootanimation ;
112
112
size_t _bootanimation_len = bootanimation_len ;
113
- uint8_t * _bootanimation_end = bootanimation_end ;
113
+ uint8_t * _bootanimation_end = ( uint8_t * ) bootanimation_end ;
114
114
size_t _bootanimation_end_len = bootanimation_end_len ;
115
115
116
116
__attribute__((packed )) struct bootanimation_user_data {
117
117
size_t magic ; // must be 0xBA for bootanimation
118
118
size_t len_loop ;
119
119
size_t len_end ;
120
120
size_t empty ;
121
- char * buf_loop ;
121
+ char buf_loop ;
122
122
} ;
123
123
124
124
uintptr_t bootanimation_addr = DT_REG_ADDR (DT_GPARENT (DT_NODELABEL (bootanimation ))) +
@@ -129,8 +129,7 @@ static int loader(const struct shell *sh)
129
129
_bootanimation = & (user_bootanimation -> buf_loop );
130
130
_bootanimation_len = user_bootanimation -> len_loop ;
131
131
_bootanimation_end_len = user_bootanimation -> len_end ;
132
- uint32_t tmp = user_bootanimation -> buf_loop + user_bootanimation -> len_loop ;
133
- _bootanimation_end = & tmp ;
132
+ _bootanimation_end = _bootanimation + user_bootanimation -> len_loop ;
134
133
}
135
134
136
135
if ((!sketch_valid ) || !(sketch_hdr -> flags & SKETCH_FLAG_IMMEDIATE )) {
You can’t perform that action at this time.
0 commit comments