MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / EventOccurred

Method EventOccurred

src/SBC/SbcInterface.cpp:1885–1911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1883}
1884
1885void SbcInterface::EventOccurred(bool timeCritical) noexcept
1886{
1887 if (!IsConnected())
1888 {
1889 return;
1890 }
1891
1892 // Increment the number of events
1893 if (timeCritical)
1894 {
1895 numEvents = numMaxEvents;
1896 }
1897 else
1898 {
1899 numEvents++;
1900 }
1901
1902 // Stop delaying if the next transfer is time-critical
1903 if (numEvents >= numMaxEvents)
1904 {
1905 const bool isDelaying = delaying.exchange(false);
1906 if (isDelaying)
1907 {
1908 sbcTask->Give(NotifyIndices::SbcInterface);
1909 }
1910 }
1911}
1912
1913void SbcInterface::DefragmentBufferedCodes() noexcept
1914{

Callers 6

SetFileFinishedMethod · 0.80
SetPrintFinishedMethod · 0.80
RequestMacroFileMethod · 0.80
MacroFileClosedMethod · 0.80
MessageAcknowledgedMethod · 0.80

Calls 1

IsConnectedFunction · 0.85

Tested by

no test coverage detected