Device-specific: Fixed error codes definition

Could cause compilation errors on some platforms