Mercurial > public > ostc4
comparison Discovery/Src/tMenuHardware.c @ 759:9825dcf50675
Some compass improvements from mikeller
author | heinrichsweikamp |
---|---|
date | Fri, 17 Mar 2023 09:35:25 +0100 |
parents | 1f557e5f4b5a |
children | ffb1036c27c2 |
comparison
equal
deleted
inserted
replaced
758:b6d8a6fbf4fd | 759:9825dcf50675 |
---|---|
79 text[textPointer++] = TXT2BYTE_Compass; | 79 text[textPointer++] = TXT2BYTE_Compass; |
80 text[textPointer++] = '\t'; | 80 text[textPointer++] = '\t'; |
81 | 81 |
82 if(settingsGetPointer()->compassBearing != 0) | 82 if(settingsGetPointer()->compassBearing != 0) |
83 { | 83 { |
84 textPointer += snprintf(&text[textPointer],20,"(%03u`)",settingsGetPointer()->compassBearing); | 84 textPointer += snprintf(&text[textPointer], 20, "(%03u`)", settingsGetPointer()->compassBearing % 360); |
85 } | 85 } |
86 text[textPointer] = 0; | 86 text[textPointer] = 0; |
87 /* | 87 /* |
88 textPointer += snprintf(&text[textPointer],20,"%i %i %i" | 88 textPointer += snprintf(&text[textPointer],20,"%i %i %i" |
89 ,stateUsed->lifeData.compass_DX_f | 89 ,stateUsed->lifeData.compass_DX_f |