Skip to content

Commit db2e616

Browse files
remove ENABLE_ACCESSORY_API guard
1 parent d5ca65c commit db2e616

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/methods.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4153,9 +4153,6 @@ PyObject* meth_flash_accessory_firmware(PyObject* self, PyObject* args)
41534153
if (!PyArg_ParseTuple(args, arg_parse("OO|b:", __FUNCTION__), &obj, &parms, &check_success)) {
41544154
return NULL;
41554155
}
4156-
#ifndef ENABLE_ACCESSORY_API
4157-
return set_ics_exception(exception_runtime_error(), "Accessory API not enabled");
4158-
#else
41594156

41604157
if (!PyNeoDeviceEx_CheckExact(obj)) {
41614158
return set_ics_exception(exception_runtime_error(), "Argument must be of type " MODULE_NAME ".PyNeoDeviceEx");
@@ -4250,7 +4247,6 @@ PyObject* meth_flash_accessory_firmware(PyObject* self, PyObject* args)
42504247
} catch (ice::Exception& ex) {
42514248
return set_ics_exception(exception_runtime_error(), (char*)ex.what());
42524249
}
4253-
#endif // ENABLE_ACCESSORY_API
42544250
}
42554251

42564252
PyObject* meth_get_accessory_firmware_version(PyObject* self, PyObject* args)
@@ -4263,9 +4259,6 @@ PyObject* meth_get_accessory_firmware_version(PyObject* self, PyObject* args)
42634259
return NULL;
42644260
}
42654261

4266-
#ifndef ENABLE_ACCESSORY_API
4267-
return set_ics_exception(exception_runtime_error(), "Accessory API not enabled");
4268-
#else
42694262
if (!PyNeoDeviceEx_CheckExact(obj)) {
42704263
return set_ics_exception(exception_runtime_error(), "Argument must be of type " MODULE_NAME ".PyNeoDeviceEx");
42714264
}
@@ -4354,7 +4347,6 @@ PyObject* meth_get_accessory_firmware_version(PyObject* self, PyObject* args)
43544347
} catch (ice::Exception& ex) {
43554348
return set_ics_exception(exception_runtime_error(), (char*)ex.what());
43564349
}
4357-
#endif // ENABLE_ACCESSORY_API
43584350
}
43594351

43604352
PyObject* meth_set_safe_boot_mode(PyObject* self, PyObject* args)

0 commit comments

Comments
 (0)