Skip to content

Commit

Permalink
Deprecate sgvCount
Browse files Browse the repository at this point in the history
  • Loading branch information
mddub committed Jul 21, 2016
1 parent 1448426 commit e5359ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"msgType": 0,

"recency": 1,
"sgvCount": 2,
"__DEPRECATED__sgvCount": 2,
"sgvs": 3,
"lastSgv": 4,
"trend": 5,
Expand Down
2 changes: 1 addition & 1 deletion src/app_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ enum {
enum {
__APP_KEYS_FOR_DATA,
APP_KEY_RECENCY,
APP_KEY_SGV_COUNT,
__DEPRECATED__APP_KEY_SGV_COUNT,
APP_KEY_SGVS,
APP_KEY_LAST_SGV,
APP_KEY_TREND,
Expand Down
1 change: 0 additions & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function main(c) {
sendMessage({
msgType: c.MSG_TYPE_DATA,
recency: format.recency(sgvs),
sgvCount: ys.length,
// XXX: divide BG by 2 to fit into 1 byte
sgvs: ys.map(function(y) { return Math.min(255, Math.floor(y / 2)); }),
lastSgv: format.lastSgv(sgvs),
Expand Down

0 comments on commit e5359ef

Please sign in to comment.