mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 13:34:05 -06:00
ENH: refine the timestamp when using P1P
the timestamp of mjpeg is not accurate we simulate one Change-Id: I9198f1ba930994cc4f86e8d3a3c778539d04ccb3
This commit is contained in:
parent
3d378563b5
commit
6b15afc7b6
4 changed files with 81 additions and 53 deletions
|
@ -895,7 +895,7 @@ StaticBambuLib &StaticBambuLib::get()
|
|||
{
|
||||
static StaticBambuLib lib;
|
||||
// first load the library
|
||||
|
||||
|
||||
if (lib.Bambu_Open)
|
||||
return lib;
|
||||
|
||||
|
@ -910,6 +910,8 @@ StaticBambuLib &StaticBambuLib::get()
|
|||
GET_FUNC(Bambu_Create);
|
||||
GET_FUNC(Bambu_Open);
|
||||
GET_FUNC(Bambu_StartStream);
|
||||
GET_FUNC(Bambu_GetStreamCount);
|
||||
GET_FUNC(Bambu_GetStreamInfo);
|
||||
GET_FUNC(Bambu_SendMessage);
|
||||
GET_FUNC(Bambu_ReadSample);
|
||||
GET_FUNC(Bambu_Close);
|
||||
|
@ -922,6 +924,6 @@ StaticBambuLib &StaticBambuLib::get()
|
|||
return lib;
|
||||
}
|
||||
|
||||
extern "C" struct BambuLib *bambulib_get() {
|
||||
extern "C" BambuLib *bambulib_get() {
|
||||
return &StaticBambuLib::get();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue