Ejemplo n.º 1
0
/**
 * @private
 */
void printDeviceNotification(OutputStream* outputStream, Device* device) {
    char header;
    // We start after special characters and use only ANSI chars
    for (header = 32; header < 127; header++) {
        printDeviceNotificationLine(outputStream, header, device);
    }
}
Ejemplo n.º 2
0
/**
 * @private
 */
void printDeviceNotification(OutputStream* outputStream, Device* device) {
	unsigned char header;
	// Not all Device have notification, so we check it before
	for (header = 32; header < 127; header++) {
		DeviceInterface* deviceInterface = device->deviceInterface;
		int argumentLength = deviceInterface->deviceGetInterface(header, DEVICE_MODE_NOTIFY, true);
		if (argumentLength != DEVICE_HEADER_NOT_HANDLED) {
			printDeviceHeader(outputStream, device);
			break;
		}
	}

    // We start after special characters and use only ANSI chars
    for (header = 32; header < 127; header++) {
        printDeviceNotificationLine(outputStream, header, device);
    }
}