sleep mode for CC1101 at subghz app exit (#310)
This commit is contained in:
parent
24ab7384a0
commit
312d3fbd9e
@ -429,6 +429,12 @@ extern "C" void cc1101_workaround(void* p) {
|
|||||||
if(event.type == EventTypeKey) {
|
if(event.type == EventTypeKey) {
|
||||||
if(event.value.input.state && event.value.input.input == InputBack) {
|
if(event.value.input.state && event.value.input.input == InputBack) {
|
||||||
printf("[cc1101] bye!\n");
|
printf("[cc1101] bye!\n");
|
||||||
|
cli_print("[cc1101] bye!\n");
|
||||||
|
|
||||||
|
cc1101.SpiStrobe(CC1101_SIDLE);
|
||||||
|
cc1101.SpiStrobe(CC1101_SPWD);
|
||||||
|
cli_print("[cc1101] go to power down\n");
|
||||||
|
|
||||||
// TODO remove all widgets create by app
|
// TODO remove all widgets create by app
|
||||||
widget_enabled_set(widget, false);
|
widget_enabled_set(widget, false);
|
||||||
furiac_exit(NULL);
|
furiac_exit(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user