diff --git a/examples/nn_melotts/main/src/main.cpp b/examples/nn_melotts/main/src/main.cpp index 3da23021..e5a517e9 100644 --- a/examples/nn_melotts/main/src/main.cpp +++ b/examples/nn_melotts/main/src/main.cpp @@ -3,9 +3,6 @@ #include "maix_nn_melotts.hpp" #include "main.h" #include "maix_image.hpp" -#ifndef PLATFORM_MAIXCAM2 -#error "This demo only support maixcam2" -#else using namespace maix; int _main(int argc, char *argv[]) { @@ -70,5 +67,4 @@ int main(int argc, char *argv[]) // if we don't catch exception, when program throw exception, the objects will not be destructed. // So we catch exception here to let resources be released(call objects' destructor) before exit. CATCH_EXCEPTION_RUN_RETURN(_main, -1, argc, argv); -} -#endif \ No newline at end of file +} \ No newline at end of file diff --git a/examples/nn_whisper/main/src/main.cpp b/examples/nn_whisper/main/src/main.cpp index c526b528..8ff8db5f 100644 --- a/examples/nn_whisper/main/src/main.cpp +++ b/examples/nn_whisper/main/src/main.cpp @@ -2,9 +2,6 @@ #include "maix_basic.hpp" #include "maix_nn_whisper.hpp" #include "main.h" -#ifndef PLATFORM_MAIXCAM2 -#error "This demo only support maixcam2" -#else using namespace maix; int _main(int argc, char *argv[]) @@ -66,5 +63,4 @@ int main(int argc, char *argv[]) // if we don't catch exception, when program throw exception, the objects will not be destructed. // So we catch exception here to let resources be released(call objects' destructor) before exit. CATCH_EXCEPTION_RUN_RETURN(_main, -1, argc, argv); -} -#endif \ No newline at end of file +} \ No newline at end of file