Skip to content

Commit

Permalink
Update to graph-prototype API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
frankosterfeld committed Apr 23, 2024
1 parent 417f997 commit 591bc5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set(ENABLE_TESTING OFF)
FetchContent_Declare(
graph-prototype
GIT_REPOSITORY https://github.com/fair-acc/graph-prototype.git
GIT_TAG 3cb5c2aff7046bc3760ccd8f8b701cbde361ecfd # main as of 2024-04-05
GIT_TAG c96c8ec1898a508f0e522ad91e50080c867659bd # main as of 2024-04-23
)

FetchContent_Declare(
Expand Down
2 changes: 1 addition & 1 deletion blocklib/picoscope/Picoscope.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ struct Picoscope : public gr::Block<TPSImpl, gr::BlockingIO<true>, gr::Supported

if (const auto errors_available = ps_state.errors.reader.available(); errors_available > 0) {
auto errors = ps_state.errors.reader.get(errors_available);
std::ignore = ps_state.errors.reader.consume(errors_available);
std::ignore = errors.consume(errors.size());
return { 0, 0, ERROR };
}

Expand Down
5 changes: 3 additions & 2 deletions blocklib/timing/src/test-timing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ void drawSnoopedEventTableRow(const Timing::Event &evt, Timing &timing) {
void showTimingEventTable(Timing &timing) {
static gr::BufferReader auto event_reader = timing.snooped.new_reader();
if (ImGui::Button("clear")) {
std::ignore = event_reader.consume(event_reader.available());
auto ignored = event_reader.get();
std::ignored = ignored.consume(ignored.size());
}
ImGui::SameLine(); ImGui::Dummy({50,5});ImGui::SameLine();
auto [id_filter, mask] = TimingGroupFilterDropdown();
Expand Down Expand Up @@ -656,7 +657,7 @@ class TimePlot {
events.pushBack({eventtime, static_cast<double>(event.eventNo)});
}
}
std::ignore = snoopReader.consume(newEvents.size()); // consume processed events
std::ignore = newEvents.consume(newEvents.size()); // consume processed events
}

void display(Timing &timing) const {
Expand Down

0 comments on commit 591bc5d

Please sign in to comment.