device: Add new FP_DEVICE_ERROR_TOO_HOT

This error code will be thrown if we refuse an operation to protect the
device from overheating.
This commit is contained in:
Benjamin Berg
2021-04-21 21:23:53 +02:00
parent 71e0c29f28
commit 6440a7d12f
2 changed files with 6 additions and 0 deletions

View File

@@ -179,6 +179,10 @@ fpi_device_error_new (FpDeviceError error)
msg = "This device has been removed from the system.";
break;
case FP_DEVICE_ERROR_TOO_HOT:
msg = "Device disabled to prevent overheating.";
break;
default:
g_warning ("Unsupported error, returning general error instead!");
error = FP_DEVICE_ERROR_GENERAL;