Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
fix: removed static keyword to prevent persisting
Browse files Browse the repository at this point in the history
accelerometer data values. Closes #23

Signed-off-by: Simen S. Røstad <simen.rostad@nordicsemi.no>
  • Loading branch information
simensrostad committed Mar 10, 2020
1 parent 3649c80 commit e270232
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/cloud_codec/cloud_codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ struct cloud_data {
s64_t dev_modem_data_ts;
};

struct cloud_data_time {
s64_t epoch;
s64_t update_time;
s64_t delta_time;
};

int cloud_decode_response(char *input, struct cloud_data *cloud_data);

int cloud_encode_sensor_data(struct cloud_msg *output,
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ static void work_init(void)
static void adxl362_trigger_handler(struct device *dev,
struct sensor_trigger *trig)
{
static struct sensor_value accel[3];
struct sensor_value accel[3];

switch (trig->type) {
case SENSOR_TRIG_THRESHOLD:
Expand Down

0 comments on commit e270232

Please sign in to comment.