Skip to content

Commit 6fdaf32

Browse files
committed
Enforce that hwstart to be 0 or 1.
1 parent 64b766c commit 6fdaf32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prawn_do/prawn_do.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void core1_entry() {
201201

202202
if(command & BUFFERED){
203203
// buffered execution
204-
uint32_t hwstart = (command & HWSTART);
204+
uint32_t hwstart = !!(command & HWSTART);
205205

206206
set_status(TRANSITION_TO_RUNNING);
207207
if(debug){

0 commit comments

Comments
 (0)