Skip to content

Commit

Permalink
Fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Jun 21, 2024
1 parent 1638b83 commit e2aa8cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/raw-viewer/emulator.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

/*
#cgo CFLAGS: -I../../include
#cgo CFLAGS: -I../../include -I../../lib/capstone/include
#cgo LDFLAGS: libinfiniemu.a
#include <setjmp.h>
Expand Down Expand Up @@ -283,7 +283,7 @@ func NewEmulator(program *Program, spiFlash []byte) *Emulator {
pinner.Pin(&flash[0])

// The C code makes a copy of the flash contents, so we can safely unpin it after
pt := C.pinetime_new((*C.uchar)(&flash[0]), C.ulong(len(flash)), true)
pt := C.pinetime_new((*C.uchar)(&flash[0]), C.ulong(len(flash)), true, true)
C.pinetime_reset(pt)

nrf52 := C.pinetime_get_nrf52832(pt)
Expand Down
Empty file added tools/raw-viewer/user_config.h
Empty file.

0 comments on commit e2aa8cb

Please sign in to comment.