MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / triggerErrorEvent

Function triggerErrorEvent

modules/drivers/w3csensor/sensor.c:485–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485void triggerErrorEvent(xsSensor sensor, const char *errorMsg)
486{
487 doDeactivate(sensor);
488
489 triggerEvent(sensor, kEventKindError, errorMsg);
490}
491
492void doDeactivate(xsSensor sensor)
493{

Callers 1

readSensorFunction · 0.85

Calls 2

doDeactivateFunction · 0.85
triggerEventFunction · 0.85

Tested by

no test coverage detected