Skip to content

Commit

Permalink
1.0.5 hopefully fixes offline loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ekettenburg committed Jul 5, 2016
1 parent ee21ce6 commit d288379
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions cores/oak/OakParticle/particle_core.cpp
Expand Up @@ -1068,7 +1068,7 @@ int description(unsigned char *buf, unsigned char token,
sprintf(number_buffer,"%d",deviceConfig->system_version);
appender.append(number_buffer);
appender.append(",\"d\":[]},{\"s\":1040368,\"l\":\"m\",\"vc\":30,\"vv\":30,\"u\":\"0\",\"f\":\"u\",\"n\":\"1\",\"v\":1,\"d\":[{\"f\":\"s\",\"n\":\"1\",\"v\":");
sprintf(number_buffer,"%d",OAK_SYSTEM_VERSION_INTEGER);
sprintf(number_buffer,"%d",deviceConfig->system_version);
appender.append(number_buffer);
appender.append(",\"_\":\"\"}]}]");
}
Expand Down Expand Up @@ -1722,12 +1722,12 @@ bool handle_update_begin(msg& message)
#ifdef DEBUG_SETUP
Serial.println("F4");
#endif
if (deviceConfig->system_version < OAK_SYSTEM_VERSION_INTEGER || deviceConfig->system_update_pending > 0){
/*if (deviceConfig->system_version < OAK_SYSTEM_VERSION_INTEGER || deviceConfig->system_update_pending > 0){
if(deviceConfig->system_update_pending == 0){
deviceConfig->system_update_pending = 1;
writeDeviceConfig();
}
}
}*/
//else if(deviceConfig->system_update_pending == 1){
// set_oakboot_defaults(0);
// deviceConfig->system_update_pending = 2;
Expand Down Expand Up @@ -2739,9 +2739,11 @@ bool particle_handshake(){
spark_send_event("spark/hardware/ota_chunk_size", buf, 60, PRIVATE, NULL);

///if we want to be able to get a system update we need to send that we are in safe more right now
/*
if (deviceConfig->system_version < OAK_SYSTEM_VERSION_INTEGER || deviceConfig->system_update_pending > 0){
spark_send_event("spark/device/safemode" "", "", 60, PRIVATE, NULL);
}
*/

/*
#if defined(SPARK_SUBSYSTEM_EVENT_NAME)
Expand Down
4 changes: 2 additions & 2 deletions cores/oak/OakParticle/particle_globals.h
Expand Up @@ -8,10 +8,10 @@

#define PRODUCT_ID 82
#define PLATFORM_ID 82
#define OAK_SYSTEM_VERSION_INTEGER 9
#define OAK_SYSTEM_VERSION_INTEGER 10
#define OAK_SYSTEM_VERSION_MAJOR 1
#define OAK_SYSTEM_VERSION_MINOR 0
#define OAK_SYSTEM_VERSION_RELEASE 4
#define OAK_SYSTEM_VERSION_RELEASE 5


typedef enum
Expand Down
2 changes: 1 addition & 1 deletion version.txt
@@ -1 +1 @@
1.0.4
1.0.5

0 comments on commit d288379

Please sign in to comment.