Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add standyoverride.
has to do with crash on blank screen.
  • Loading branch information
Lorn Potter committed Feb 11, 2013
1 parent 7594e84 commit 8517c35
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions adaptors/steaccelerometeradaptor/steaccelerometeradaptor.h
Expand Up @@ -15,14 +15,15 @@ class SteAccelAdaptor : public SysfsAdaptor {
static DeviceAdaptor* factoryMethod (const QString& id) {
return new SteAccelAdaptor (id);
}
SteAccelAdaptor (const QString& id);
~SteAccelAdaptor ();
SteAccelAdaptor(const QString& id);
~SteAccelAdaptor();

bool startSensor ();
void stopSensor ();
bool startSensor();
void stopSensor();

protected:
void processSample (int pathId, int fd);
void processSample(int pathId, int fd);
virtual bool setStandbyOverride(const bool override) { Q_UNUSED(override); return false; }

private:
DeviceAdaptorRingBuffer<OrientationData>* buffer;
Expand All @@ -31,5 +32,6 @@ class SteAccelAdaptor : public SysfsAdaptor {
QByteArray powerStatePath;
QByteArray range;
int frequency;
bool displayOn;
};
#endif

0 comments on commit 8517c35

Please sign in to comment.