Skip to content

Commit

Permalink
[drivewire][cpm] do not build at all if not ESP32.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Apr 29, 2024
1 parent 113f8b6 commit f4f8d5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/device/drivewire/cpm.cpp
@@ -1,5 +1,7 @@
#ifdef BUILD_COCO

#ifdef ESP_PLATFORM

#define CCP_INTERNAL

#include "cpm.h"
Expand Down Expand Up @@ -170,8 +172,8 @@ void drivewireCPM::process()
}
}

#ifdef ESP_PLATFORM
drivewireCPM theCPM;

#endif /* ESP_PLATFORM */

#endif /* BUILD_COCO */
3 changes: 2 additions & 1 deletion lib/device/drivewire/cpm.h
Expand Up @@ -2,6 +2,8 @@
#ifndef DRIVEWIRECPM_H
#define DRIVEWIRECPM_H

#ifdef ESP_PLATFORM

#include "bus.h"


Expand Down Expand Up @@ -33,7 +35,6 @@ class drivewireCPM : public virtualDevice
virtual void status();
};

#ifdef ESP_PLATFORM
extern drivewireCPM theCPM;
#endif /* ESP_PLATFORM */

Expand Down

0 comments on commit f4f8d5a

Please sign in to comment.